Class ItemMoveScheduler

java.lang.Object
io.github.apfelcreme.Pipes.Manager.ItemMoveScheduler

public class ItemMoveScheduler extends Object
  • Method Details

    • getInstance

      public static ItemMoveScheduler getInstance()
      returns the scheduler instance
      Returns:
      the scheduler instance
    • execute

      public boolean execute(SimpleLocation simpleLocation)
      executes the item transfer
      Parameters:
      simpleLocation - the location of the PipeInput
      Returns:
      true if this transfer should be considered as completed and removed from the queue
    • isActive

      public boolean isActive()
      is the task running at the moment?
      Returns:
      true or false
    • add

      public void add(SimpleLocation scheduledItemTransfer)
      schedules an item move
      Parameters:
      scheduledItemTransfer - the item transfer
    • getTransfers

      public Set<SimpleLocation> getTransfers()
    • load

      public static void load()
    • exit

      public static void exit()