Class PlayerRemoveGrassEvent
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.PlayerRemoveGrassEvent
- All Implemented Interfaces:
Cancellable
Called when a player removes/cuts grass.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the grass id the player is going to destroy/remove.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
-
getGrassID
public int getGrassID()Gets the grass id the player is going to destroy/remove.- Returns:
- the old grass id.
-