Klasse 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
- Alle implementierten Schnittstellen:
Cancellable
Called when a player paints a construction element.
For painting objects (like furniture or doors), see
PlayerChangeObjectColorEvent
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the construction element.int
Gets the new color for the construction element.int
void
setNewColor
(int color) Von Klasse geerbte Methoden net.risingworld.api.events.player.world.PlayerConstructionEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getConstructionDefinition, getGlobalID, getTexture, getTypeID, isCancelled, setCancelled
Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getOldColor
public int getOldColor() -
getNewColor
public int getNewColor()Gets the new color for the construction element.- Gibt zurück:
- the new color, as int RGBA.
-
setNewColor
public void setNewColor(int color) -
getConstructionElement
Beschreibung aus Klasse kopiert:PlayerConstructionEvent
Gets the construction element.- Setzt außer Kraft:
getConstructionElement
in KlassePlayerConstructionEvent
- Gibt zurück:
- the construction element.
-