public class MultiTask<E extends LivingEntity> extends Task<E>
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MultiTask.Ordering |
(package private) static class |
MultiTask.RunType |
Task.Status
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MemoryModuleType<?>> |
field_220416_b |
private MultiTask.Ordering |
field_220417_c |
private MultiTask.RunType |
field_220418_d |
private WeightedList<Task<? super E>> |
field_220419_e |
Constructor and Description |
---|
MultiTask(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51503_1_,
java.util.Set<MemoryModuleType<?>> p_i51503_2_,
MultiTask.Ordering p_i51503_3_,
MultiTask.RunType p_i51503_4_,
java.util.List<com.mojang.datafixers.util.Pair<Task<? super E>,java.lang.Integer>> p_i51503_5_) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isTimedOut(long gameTime) |
protected void |
resetTask(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
protected boolean |
shouldContinueExecuting(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
protected void |
startExecuting(ServerWorld worldIn,
E entityIn,
long gameTimeIn) |
java.lang.String |
toString() |
protected void |
updateTask(ServerWorld worldIn,
E owner,
long gameTime) |
private final java.util.Set<MemoryModuleType<?>> field_220416_b
private final MultiTask.Ordering field_220417_c
private final MultiTask.RunType field_220418_d
private final WeightedList<Task<? super E extends LivingEntity>> field_220419_e
public MultiTask(java.util.Map<MemoryModuleType<?>,MemoryModuleStatus> p_i51503_1_, java.util.Set<MemoryModuleType<?>> p_i51503_2_, MultiTask.Ordering p_i51503_3_, MultiTask.RunType p_i51503_4_, java.util.List<com.mojang.datafixers.util.Pair<Task<? super E>,java.lang.Integer>> p_i51503_5_)
protected boolean shouldContinueExecuting(ServerWorld worldIn, E entityIn, long gameTimeIn)
shouldContinueExecuting
in class Task<E extends LivingEntity>
protected boolean isTimedOut(long gameTime)
isTimedOut
in class Task<E extends LivingEntity>
protected void startExecuting(ServerWorld worldIn, E entityIn, long gameTimeIn)
startExecuting
in class Task<E extends LivingEntity>
protected void updateTask(ServerWorld worldIn, E owner, long gameTime)
updateTask
in class Task<E extends LivingEntity>
protected void resetTask(ServerWorld worldIn, E entityIn, long gameTimeIn)
resetTask
in class Task<E extends LivingEntity>
public java.lang.String toString()
toString
in class Task<E extends LivingEntity>