public class CUseEntityPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
static class |
CUseEntityPacket.Action |
Modifier and Type | Field and Description |
---|---|
private CUseEntityPacket.Action |
action |
private int |
entityId |
private Hand |
hand |
private Vec3d |
hitVec |
Constructor and Description |
---|
CUseEntityPacket() |
CUseEntityPacket(Entity entityIn) |
CUseEntityPacket(Entity entityIn,
Hand handIn) |
CUseEntityPacket(Entity entityIn,
Hand handIn,
Vec3d hitVecIn) |
Modifier and Type | Method and Description |
---|---|
CUseEntityPacket.Action |
getAction() |
Entity |
getEntityFromWorld(World worldIn) |
Hand |
getHand() |
Vec3d |
getHitVec() |
void |
processPacket(IServerPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private int entityId
private CUseEntityPacket.Action action
private Vec3d hitVec
private Hand hand
public CUseEntityPacket()
public CUseEntityPacket(Entity entityIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void processPacket(IServerPlayNetHandler handler)
processPacket
in interface IPacket<IServerPlayNetHandler>
public CUseEntityPacket.Action getAction()
public Hand getHand()
public Vec3d getHitVec()