Class PlayerHitTerrainEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerWorldEditEvent
net.risingworld.api.events.player.world.PlayerHitTerrainEvent
- All Implemented Interfaces:
Cancellable
Called when a player hits terrain with a tool (e.g pickaxe).
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionshort
Gets the amount of damage the player deals with this hit.Gets the world coordinates where the terrain was hit exactly.Methods inherited from class net.risingworld.api.events.player.world.PlayerWorldEditEvent
getBlockPositionX, getBlockPositionY, getBlockPositionZ, getChunkPositionX, getChunkPositionY, getChunkPositionZ, isCancelled, setCancelled
Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getDamage
public short getDamage()Gets the amount of damage the player deals with this hit.- Returns:
- the amount of damage.
-
getHitPosition
Gets the world coordinates where the terrain was hit exactly.- Returns:
- coordinates where the terrain was hit.
-