C07PacketPlayerDigging
Constructs a new C07PacketPlayerDigging object with the specified action, target block position, and face of the block. action is a string representing the digging action, block is a BlockPos object indicating the position of the block, and face is a string indicating the block face involved in the action.
getPosition(): BlockPos
getPosition(): BlockPosReturns a BlockPos object representing the position of the block that is being interacted with.
Sets the position for this packet.
getFace(): String
getFace(): StringReturns a String representing the face that is being interacted with, a list of possible faces can be found here.
setFace(String face): void
setFace(String face): voidSets the face that is being interacted with, a list of possible faces can be found here.
getAction(): String
getAction(): StringReturns a String that corresponds to one of the action types described below.
setAction(String action): void
setAction(String action): voidSets the action for this packet, you can choose from the all the actions described here.
Action Types for C07PacketPlayerDigging
The C07PacketPlayerDigging class supports the following actions:
START_DESTROY_BLOCK
Begin destroying a block.
ABORT_DESTROY_BLOCK
Abort the action of destroying a block.
STOP_DESTROY_BLOCK
Stop/finish destroying a block.
DROP_ALL_ITEMS
Drop the entire stack you are holding currently.
DROP_ITEM
Drop the currently held item.
RELEASE_USE_ITEM
Release the use of the currently held item.
Last updated