44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
package me.konsolas.aac.internal.packetwrapper;
|
|
|
|
import com.comphenix.protocol.PacketType;
|
|
import com.comphenix.protocol.events.PacketContainer;
|
|
import com.comphenix.protocol.wrappers.EnumWrappers.EntityUseAction;
|
|
import org.bukkit.util.Vector;
|
|
|
|
public class WrapperPlayClientUseEntity extends AbstractPacket {
|
|
public static final PacketType TYPE = PacketType.Play.Client.USE_ENTITY;
|
|
|
|
public WrapperPlayClientUseEntity() {
|
|
super(new PacketContainer(TYPE), TYPE);
|
|
this.handle.getModifier().writeDefaults();
|
|
}
|
|
|
|
public WrapperPlayClientUseEntity(PacketContainer packet) {
|
|
super(packet, TYPE);
|
|
}
|
|
|
|
public int getTargetID() {
|
|
return this.handle.getIntegers().read(0);
|
|
}
|
|
|
|
public void setTargetID(int value) {
|
|
this.handle.getIntegers().write(0, value);
|
|
}
|
|
|
|
public EntityUseAction getAction() {
|
|
return this.handle.getEntityUseActions().read(0);
|
|
}
|
|
|
|
public void setAction(EntityUseAction value) {
|
|
this.handle.getEntityUseActions().write(0, value);
|
|
}
|
|
|
|
public Vector getTargetVector() {
|
|
return this.handle.getVectors().read(0);
|
|
}
|
|
|
|
public void setTargetVector(Vector value) {
|
|
this.handle.getVectors().write(0, value);
|
|
}
|
|
}
|