Class MetaObjectStatusChangeEvent

java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.world.MetaObjectEvent
net.risingworld.api.events.world.MetaObjectStatusChangeEvent

public final class MetaObjectStatusChangeEvent extends MetaObjectEvent
Called when the status of a meta object changes, e.g if a furnace is turned on/off, runs out of fuel etc.
  • 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.