Klasse PlayerChangeObjectStatusEvent
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.PlayerChangeObjectStatusEvent
- Alle implementierten Schnittstellen:
Cancellable
Called when the player changes the status of an object. For example, when someone opens a
door (usually status 0 == closed, status 1 == opened), or turns on a furnace etc.
Example: If a player opens a door, an explosion will be triggered
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbyte
Gets the new object status.Gets the object element.byte
void
setNewStatus
(byte status) Sets the new object status.Von Klasse geerbte Methoden net.risingworld.api.events.player.world.PlayerObjectEvent
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getGlobalID, getObjectDefinition, getTypeID, isCancelled, setCancelled
Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getOldStatus
public byte getOldStatus() -
getNewStatus
public byte getNewStatus()Gets the new object status.- Gibt zurück:
- the new status.
-
setNewStatus
public void setNewStatus(byte status) Sets the new object status.- Parameter:
status
- the new status you want to set.
-
getObject
Beschreibung aus Klasse kopiert:PlayerObjectEvent
Gets the object element.- Setzt außer Kraft:
getObject
in KlassePlayerObjectEvent
- Gibt zurück:
- the object element.
-