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 TypeMethodDescriptionintGets the new object color.Gets the object element.intvoidsetNewColor(int color) Methods inherited from class PlayerObjectEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalID, getObjectDefinition, getTypeID, isCancelled, setCancelledMethods inherited from class 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:PlayerObjectEventGets the object element.- Overrides:
getObjectin classPlayerObjectEvent- Returns:
- the object element.
-