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>
public class MemoryTransferTask<E extends MobEntity,T> extends Task<E>
- Mappings:
Namespace Name official asw
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
Fields Modifier and Type Field Description private IntRange
duration
private Predicate<E>
runPredicate
private MemoryModuleType<? extends T>
sourceType
private MemoryModuleType<T>
targetType
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description MemoryTransferTask(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, IntRange duration)
-
Method Summary
Modifier and Type Method Description protected 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 b
Lasw;b: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
Lasw;c:Lazf;
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
Lasw;d:Lazf;
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
Lasw;e:Lafy;
intermediary field_22291
Lnet/minecraft/class_4809;field_22291:Lnet/minecraft/class_4801;
named duration
Lnet/minecraft/entity/ai/brain/task/MemoryTransferTask;duration:Lnet/minecraft/util/math/IntRange;
-
-
Constructor Details
-
MemoryTransferTask
public MemoryTransferTask(Predicate<E> runPredicate, MemoryModuleType<? extends T> sourceType, MemoryModuleType<T> targetType, IntRange duration)- Mappings:
Namespace Name Mixin selector official <init>
Lasw;<init>(Ljava/util/function/Predicate;Lazf;Lazf;Lafy;)V
intermediary <init>
Lnet/minecraft/class_4809;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;Lnet/minecraft/class_4801;)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/IntRange;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lasw;a(Laav;Larj;)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
Lasw;a(Laav;Larj;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
-