Class ForgetTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ForgetTask<E>
public class ForgetTask<E extends LivingEntity> extends Task<E>
- Mappings:
Namespace Name official atc
intermediary net/minecraft/class_4813
named net/minecraft/entity/ai/brain/task/ForgetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Predicate<E>
condition
private MemoryModuleType<?>
memory
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description ForgetTask(Predicate<E> condition, MemoryModuleType<?> memory)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld world, E entity, long time)
protected boolean
shouldRun(ServerWorld world, E entity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
condition
- Mappings:
Namespace Name Mixin selector official b
Latc;b:Ljava/util/function/Predicate;
intermediary field_22302
Lnet/minecraft/class_4813;field_22302:Ljava/util/function/Predicate;
named condition
Lnet/minecraft/entity/ai/brain/task/ForgetTask;condition:Ljava/util/function/Predicate;
-
memory
- Mappings:
Namespace Name Mixin selector official c
Latc;c:Lazf;
intermediary field_22303
Lnet/minecraft/class_4813;field_22303:Lnet/minecraft/class_4140;
named memory
Lnet/minecraft/entity/ai/brain/task/ForgetTask;memory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
-
Constructor Details
-
ForgetTask
- Mappings:
Namespace Name Mixin selector official <init>
Latc;<init>(Ljava/util/function/Predicate;Lazf;)V
intermediary <init>
Lnet/minecraft/class_4813;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/ForgetTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-