Class PlayerChangeObjectColorEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.world.PlayerObjectEvent
net.risingworld.api.events.player.world.PlayerChangeObjectColorEvent
- All Implemented Interfaces:
Cancellable
Called when a player paints an object (i.e changes the color of an object element,
e.g furniture, doors etc). For painting construction elements, see
PlayerChangeConstructionColorEvent
-
Field Summary
-
Method Summary
Methods inherited from class net.risingworld.api.events.player.world.PlayerObjectEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalID, getObject, getObjectDefinition, 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 object color.- Returns:
- the new color, as int RGBA.
-
setNewColor
public void setNewColor(int color)
-