Class PlayerDestroyTerrainEvent
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.PlayerDestroyTerrainEvent
- All Implemented Interfaces:
Cancellable
Called when a player digs a hole, i.e destroys terrain.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the terrain id the player is going to destroy.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
-
getTerrainID
public int getTerrainID()Gets the terrain id the player is going to destroy.- Returns:
- the old terrain id.
-