Class PlayerPlaceTerrainEvent
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.PlayerPlaceTerrainEvent
- All Implemented Interfaces:
Cancellable
Called when a player places terrain (i.e dirt, stone, gravel etc) in the world.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionintGets the terrain id the player wants to place.voidsetTerrainID(int terrainID) Changes the terrain id to another id.Methods inherited from class PlayerWorldEditEvent
getBlockPositionX, getBlockPositionY, getBlockPositionZ, getChunkPositionX, getChunkPositionY, getChunkPositionZ, isCancelled, setCancelledMethods inherited from class PlayerEvent
getPlayer
-
Method Details
-
getTerrainID
public int getTerrainID()Gets the terrain id the player wants to place.- Returns:
- the terrain id.
-
setTerrainID
public void setTerrainID(int terrainID) Changes the terrain id to another id.- Parameters:
terrainID- the new terrain id.
-