Klasse PlayerCreativeTerrainEditEvent
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.PlayerCreativeTerrainEditEvent
- Alle implementierten Schnittstellen:
Cancellable
Called when a player uses the creative terrain edit tools (F5) to edit the terrain
(e.g remove, place, smooth etc).
-
Verschachtelte Klassen - Übersicht
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
Gets the size of the brush.Gets the edit mode, i.e the terrain edit sub tool (Add, Subtract, Paint, Smooth etc).int
Gets the terrain id the player wants to place.void
setTerrainID
(int terrainID) Changes the terrain id to another id.Von Klasse geerbte Methoden net.risingworld.api.events.player.world.PlayerWorldEditEvent
getBlockPositionX, getBlockPositionY, getBlockPositionZ, getChunkPositionX, getChunkPositionY, getChunkPositionZ, isCancelled, setCancelled
Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getTerrainID
public int getTerrainID()Gets the terrain id the player wants to place.- Gibt zurück:
- the terrain id.
-
setTerrainID
public void setTerrainID(int terrainID) Changes the terrain id to another id.- Parameter:
terrainID
- the new terrain id.
-
getCreativeEditMode
Gets the edit mode, i.e the terrain edit sub tool (Add, Subtract, Paint, Smooth etc).- Gibt zurück:
- the creative mode terrain edit tool.
-
getBrushSize
public int getBrushSize()Gets the size of the brush.- Gibt zurück:
- the brush size.
-