Task.Status
Modifier and Type | Field and Description |
---|---|
private IntRange |
duration |
private Predicate<E> |
runPredicate |
private MemoryModuleType<? extends T> |
sourceType |
private MemoryModuleType<T> |
targetType |
requiredMemoryStates
Constructor and Description |
---|
MemoryTransferTask(Predicate<E> runPredicate,
MemoryModuleType<? extends T> memoryModuleType,
MemoryModuleType<T> memoryModuleType2,
IntRange duration) |
Modifier and Type | Method and Description |
---|---|
protected void |
run(ServerWorld serverWorld,
E e,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
E e) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
private final MemoryModuleType<? extends T> sourceType
private final MemoryModuleType<T> targetType
private final IntRange duration
public MemoryTransferTask(Predicate<E> runPredicate, MemoryModuleType<? extends T> memoryModuleType, MemoryModuleType<T> memoryModuleType2, IntRange duration)