public class SPlayerDiggingPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Field and Description |
---|---|
(package private) CPlayerDiggingPacket.Action |
action |
private static org.apache.logging.log4j.Logger |
LOGGER |
private BlockPos |
pos |
private BlockState |
state |
private boolean |
successful |
Constructor and Description |
---|
SPlayerDiggingPacket() |
SPlayerDiggingPacket(BlockPos pos,
BlockState state,
CPlayerDiggingPacket.Action action,
boolean successful,
java.lang.String context) |
Modifier and Type | Method and Description |
---|---|
CPlayerDiggingPacket.Action |
getAction() |
BlockState |
getBlockState() |
BlockPos |
getPosition() |
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
boolean |
wasSuccessful() |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private static final org.apache.logging.log4j.Logger LOGGER
private BlockPos pos
private BlockState state
CPlayerDiggingPacket.Action action
private boolean successful
public SPlayerDiggingPacket()
public SPlayerDiggingPacket(BlockPos pos, BlockState state, CPlayerDiggingPacket.Action action, boolean successful, java.lang.String context)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public BlockState getBlockState()
public BlockPos getPosition()
public boolean wasSuccessful()
public CPlayerDiggingPacket.Action getAction()