Interface ReactorObject<T>

Type Parameters:
T -
All Superinterfaces:
FieldedObject<T>, ScriptObject<T>

public interface ReactorObject<T>
extends FieldedObject<T>
This is a script proxy for reactor objects.
  • Method Details

    • getState

      int getState()
    • getTemplateId

      int getTemplateId()
    • isOnLastState

      boolean isOnLastState()
    • createMob

      boolean createMob​(int mobTemplateId, int xPos, int yPos)
    • getLastUser

      Optional<? extends UserObject> getLastUser()
      Returns:
      the last User to interact with this reactor.
    • drop

      boolean drop()
      Triggers a 'drop' action for the reactor.
      Returns:
      true if the drop was successful.
    • dropItems

      default boolean dropItems​(Tuple<Integer,​Integer>... itemAndCount)
      Drops items from the reactor's position
      Parameters:
      itemAndCount - - Left is the item's .wz id - Right is the count
      Returns:
      true if items were dropped
    • dropItems

      boolean dropItems​(Collection<Tuple<Integer,​Integer>> itemAndCount)
      Drops items from the reactor's position
      Parameters:
      itemAndCount - - Left is the item's .wz id - Right is the count
      Returns:
      true if items were dropped