Class MemoryTransferTask<E extends MobEntity,T>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.MemoryTransferTask<E,T>
- Mappings:
Namespace Name official avk
intermediary net/minecraft/class_4809
named net/minecraft/entity/ai/brain/task/MemoryTransferTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final UniformIntProvider
private final MemoryModuleType<? extends T>
private final MemoryModuleType<T>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionMemoryTransferTask
(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider duration) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run
(ServerWorld serverWorld, E e, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, E e) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
runPredicate
- Mappings:
Namespace Name Mixin selector official a
Lavk;a:Ljava/util/function/Predicate;
intermediary field_22288
Lnet/minecraft/class_4809;field_22288:Ljava/util/function/Predicate;
named runPredicate
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;runPredicate:Ljava/util/function/Predicate;
-
sourceType
- Mappings:
Namespace Name Mixin selector official c
Lavk;c:Lbbt;
intermediary field_22289
Lnet/minecraft/class_4809;field_22289:Lnet/minecraft/class_4140;
named sourceType
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;sourceType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
targetType
- Mappings:
Namespace Name Mixin selector official d
Lavk;d:Lbbt;
intermediary field_22290
Lnet/minecraft/class_4809;field_22290:Lnet/minecraft/class_4140;
named targetType
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;targetType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
duration
- Mappings:
Namespace Name Mixin selector official e
Lavk;e:Larm;
intermediary field_22291
Lnet/minecraft/class_4809;field_22291:Lnet/minecraft/class_6019;
named duration
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;duration:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
-
Constructor Details
-
MemoryTransferTask
public MemoryTransferTask(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, UniformIntProvider duration) - Mappings:
Namespace Name Mixin selector official <init>
Lavk;<init>(Ljava/util/function/Predicate;Lbbt;Lbbt;Larm;)V
intermediary <init>
Lnet/minecraft/class_4809;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;Lnet/minecraft/class_6019;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/util/math/intprovider/UniformIntProvider;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavk;a(Labr;Latv;)Z
intermediary method_24566
Lnet/minecraft/class_4809;method_24566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
run
- Overrides:
run
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavk;a(Labr;Latv;J)V
intermediary method_24567
Lnet/minecraft/class_4809;method_24567(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named run
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-