public class CPacketPlayerDigging extends java.lang.Object implements Packet<INetHandlerPlayServer>
Modifier and Type | Class and Description |
---|---|
static class |
CPacketPlayerDigging.Action |
Modifier and Type | Field and Description |
---|---|
private CPacketPlayerDigging.Action |
action |
private EnumFacing |
facing |
private BlockPos |
position |
Constructor and Description |
---|
CPacketPlayerDigging() |
CPacketPlayerDigging(CPacketPlayerDigging.Action actionIn,
BlockPos posIn,
EnumFacing facingIn) |
Modifier and Type | Method and Description |
---|---|
CPacketPlayerDigging.Action |
getAction() |
EnumFacing |
getFacing() |
BlockPos |
getPosition() |
void |
processPacket(INetHandlerPlayServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private BlockPos position
private EnumFacing facing
private CPacketPlayerDigging.Action action
public CPacketPlayerDigging()
public CPacketPlayerDigging(CPacketPlayerDigging.Action actionIn, BlockPos posIn, EnumFacing facingIn)
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 BlockPos getPosition()
public EnumFacing getFacing()
public CPacketPlayerDigging.Action getAction()