Package net.minestom.server.event.player
Class PlayerStartDiggingEvent
java.lang.Object
net.minestom.server.event.Event
net.minestom.server.event.CancellableEvent
net.minestom.server.event.player.PlayerStartDiggingEvent
public class PlayerStartDiggingEvent extends CancellableEvent
-
Constructor Summary
Constructors Constructor Description PlayerStartDiggingEvent(Player player, BlockPosition blockPosition, int blockStateId, int customBlockId)
-
Method Summary
Modifier and Type Method Description BlockPosition
getBlockPosition()
Gets theBlockPosition
.int
getBlockStateId()
Gets the block state id.int
getCustomBlockId()
Gets the custom block id.Player
getPlayer()
Gets thePlayer
who started digging the block.
-
Constructor Details
-
PlayerStartDiggingEvent
public PlayerStartDiggingEvent(@NotNull Player player, @NotNull BlockPosition blockPosition, int blockStateId, int customBlockId)
-
-
Method Details
-
getPlayer
Gets thePlayer
who started digging the block.- Returns:
- the
Player
-
getBlockPosition
Gets theBlockPosition
.- Returns:
- the
BlockPosition
-
getBlockStateId
public int getBlockStateId()Gets the block state id.- Returns:
- the block state id
-
getCustomBlockId
public int getCustomBlockId()Gets the custom block id.- Returns:
- the custom block id
-