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():
BlockPos
Returns a BlockPos
object representing the position of the block that is being interacted with.
Sets the position for this packet.
getFace(): String
getFace(): String
Returns 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): void
Sets the face that is being interacted with, a list of possible faces can be found here.
getAction(): String
getAction(): String
Returns a String
that corresponds to one of the action types described below.
setAction(String action): void
setAction(String action): void
Sets 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:
Action Type | Description |
---|---|
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