Class PlayerChangeConstructionColorEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerConstructionEvent
net.risingworld.api.events.player.world.PlayerChangeConstructionColorEvent
- All Implemented Interfaces:
Cancellable
Called when a player paints a construction element.
For painting objects (like furniture or doors), see
PlayerChangeObjectColorEvent
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the new color for the construction element.int
void
setNewColor
(int color) Methods inherited from class net.risingworld.api.events.player.world.PlayerConstructionEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getConstructionDefinition, getGlobalID, getTexture, getTypeID, isCancelled, setCancelled
Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getOldColor
public int getOldColor() -
getNewColor
public int getNewColor()Gets the new color for the construction element.- Returns:
- the new color, as int RGBA.
-
setNewColor
public void setNewColor(int color)
-