Package net.minestom.server.event.player
Class PlayerCancelDiggingEvent
java.lang.Object
net.minestom.server.event.player.PlayerCancelDiggingEvent
- All Implemented Interfaces:
Event
,BlockEvent
,EntityEvent
,EntityInstanceEvent
,InstanceEvent
,PlayerEvent
,PlayerInstanceEvent
Called when a
Player
stops digging a block before it is broken-
Constructor Summary
ConstructorDescriptionPlayerCancelDiggingEvent
(@NotNull Player player, @NotNull Block block, @NotNull BlockVec blockPosition) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.EntityInstanceEvent
getInstance
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerCancelDiggingEvent
-
-
Method Details
-
getBlock
Gets the block which was being dug.- Specified by:
getBlock
in interfaceBlockEvent
- Returns:
- the block
-
getBlockPosition
Gets the block position.- Specified by:
getBlockPosition
in interfaceBlockEvent
- Returns:
- the block position
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-