Package net.risingworld.api.events.world
Class MetaObjectStatusChangeEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.world.MetaObjectEvent
net.risingworld.api.events.world.MetaObjectStatusChangeEvent
Called when the status of a meta object changes, e.g if a furnace is turned on/off, runs out of fuel etc.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
Gets the new object status.byte
void
setNewStatus
(byte status) Sets the new object status.Methods inherited from class net.risingworld.api.events.world.MetaObjectEvent
getGlobalID, getMetaObject
-
Method Details
-
getOldStatus
public byte getOldStatus() -
getNewStatus
public byte getNewStatus()Gets the new object status.- Returns:
- the new status.
-
setNewStatus
public void setNewStatus(byte status) Sets the new object status.- Parameters:
status
- the new status you want to set.
-