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
Modifier and TypeMethodDescriptionint
Gets the new object color.Gets the object element.int
void
setNewColor
(int color) Methods inherited from class net.risingworld.api.events.player.world.PlayerObjectEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalID, 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) -
getObject
Description copied from class:PlayerObjectEvent
Gets the object element.- Overrides:
getObject
in classPlayerObjectEvent
- Returns:
- the object element.
-