Class ItemMoveScheduler
java.lang.Object
io.github.apfelcreme.Pipes.Manager.ItemMoveScheduler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SimpleLocation scheduledItemTransfer) schedules an item moveboolean
execute
(SimpleLocation simpleLocation) executes the item transferstatic void
exit()
static ItemMoveScheduler
returns the scheduler instanceboolean
isActive()
is the task running at the moment?static void
load()
-
Method Details
-
getInstance
returns the scheduler instance- Returns:
- the scheduler instance
-
execute
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
schedules an item move- Parameters:
scheduledItemTransfer
- the item transfer
-
getTransfers
-
load
public static void load() -
exit
public static void exit()
-