added files.
This commit is contained in:
commit
8aa2a15c64
124 files changed
+14297
No files matched your search
@@ -0,0 +1,43 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user