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
ConstructorsConstructorDescriptionPlayerCancelDiggingEvent(Player player, Instance instance, Block block, BlockVec blockPosition) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Gets the block which was being dug.Gets the block position.Gets the instance.Gets the player.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
PlayerCancelDiggingEvent
-
-
Method Details
-
getInstance
Description copied from interface:InstanceEventGets the instance.- Specified by:
getInstancein interfaceEntityInstanceEvent- Specified by:
getInstancein interfaceInstanceEvent- Returns:
- instance
-
getBlock
Gets the block which was being dug.- Specified by:
getBlockin interfaceBlockEvent- Returns:
- the block
-
getBlockPosition
Gets the block position.- Specified by:
getBlockPositionin interfaceBlockEvent- Returns:
- the block position
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-