public class CPacketUseEntity extends java.lang.Object implements Packet<INetHandlerPlayServer>
Modifier and Type | Class and Description |
---|---|
static class |
CPacketUseEntity.Action |
Modifier and Type | Field and Description |
---|---|
private CPacketUseEntity.Action |
action |
private int |
entityId |
private EnumHand |
hand |
private Vec3d |
hitVec |
Constructor and Description |
---|
CPacketUseEntity() |
CPacketUseEntity(Entity entityIn) |
CPacketUseEntity(Entity entityIn,
EnumHand handIn) |
CPacketUseEntity(Entity entityIn,
EnumHand handIn,
Vec3d hitVecIn) |
Modifier and Type | Method and Description |
---|---|
CPacketUseEntity.Action |
getAction() |
Entity |
getEntityFromWorld(World worldIn) |
EnumHand |
getHand() |
Vec3d |
getHitVec() |
void |
processPacket(INetHandlerPlayServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private int entityId
private CPacketUseEntity.Action action
private Vec3d hitVec
private EnumHand hand
public CPacketUseEntity()
public CPacketUseEntity(Entity entityIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void processPacket(INetHandlerPlayServer handler)
processPacket
in interface Packet<INetHandlerPlayServer>
public CPacketUseEntity.Action getAction()
public EnumHand getHand()
public Vec3d getHitVec()