public class CPacketUseEntity extends java.lang.Object implements Packet<INetHandlerPlayServer>
Modifier and Type | Class and Description |
---|---|
static class |
CPacketUseEntity.Action |
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) |
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()