public class CUseEntityPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
| Modifier and Type | Class and Description |
|---|---|
static class |
CUseEntityPacket.Action |
| 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, waitshouldSkipErrorspublic CUseEntityPacket()
public CUseEntityPacket(Entity entityIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData in interface IPacket<IServerPlayNetHandler>java.io.IOExceptionpublic void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData in interface IPacket<IServerPlayNetHandler>java.io.IOExceptionpublic void processPacket(IServerPlayNetHandler handler)
processPacket in interface IPacket<IServerPlayNetHandler>public CUseEntityPacket.Action getAction()
public Hand getHand()
public Vec3d getHitVec()