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 TypeMethodDescriptionGets the construction element.intGets the new color for the construction element.intvoidsetNewColor(int color) Methods inherited from class net.risingworld.api.events.player.world.PlayerConstructionEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getConstructionColor, getConstructionDefinition, getGlobalID, getPosition, getRotation, getSize, getTexture, getTypeID, isCancelled, setCancelledMethods 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) -
getConstructionElement
Description copied from class:PlayerConstructionEventGets the construction element.- Overrides:
getConstructionElementin classPlayerConstructionEvent- Returns:
- the construction element.
-