public class ForgetTask<E extends LivingEntity> extends Task<E>
Task.Status
Modifier and Type | Field and Description |
---|---|
private Predicate<E> |
condition |
private MemoryModuleType<?> |
memory |
requiredMemoryStates
Constructor and Description |
---|
ForgetTask(Predicate<E> condition,
MemoryModuleType<?> memory) |
Modifier and Type | Method and Description |
---|---|
protected void |
run(ServerWorld world,
E entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
E entity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
private final Predicate<E extends LivingEntity> condition
private final MemoryModuleType<?> memory
public ForgetTask(Predicate<E> condition, MemoryModuleType<?> memory)
protected boolean shouldRun(ServerWorld world, E entity)
shouldRun
in class Task<E extends LivingEntity>
protected void run(ServerWorld world, E entity, long time)
run
in class Task<E extends LivingEntity>