Class GoToRememberedPositionTask<T>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToRememberedPositionTask<T>
- Mappings:
Namespace Name official bew
intermediary net/minecraft/class_4121
named net/minecraft/entity/ai/brain/task/GoToRememberedPositionTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MemoryModuleType<T>
private final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionGoToRememberedPositionTask
(MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posRetriever) -
Method Summary
Modifier and TypeMethodDescriptionprivate Vec3d
getPos
(PathAwareEntity entity) private boolean
protected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) private static void
setWalkTarget
(PathAwareEntity entity, Vec3d pos, float speed) protected boolean
shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) static GoToRememberedPositionTask<BlockPos>
toBlock
(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget) static GoToRememberedPositionTask<? extends Entity>
toEntity
(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
entityMemory
- Mappings:
Namespace Name Mixin selector official a
Lbew;a:Lbjx;
intermediary field_18380
Lnet/minecraft/class_4121;field_18380:Lnet/minecraft/class_4140;
named entityMemory
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;entityMemory:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official d
Lbew;d:F
intermediary field_18381
Lnet/minecraft/class_4121;field_18381:F
named speed
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;speed:F
-
range
private final int range- Mappings:
Namespace Name Mixin selector official e
Lbew;e:I
intermediary field_22321
Lnet/minecraft/class_4121;field_22321:I
named range
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;range:I
-
posRetriever
- Mappings:
Namespace Name Mixin selector official f
Lbew;f:Ljava/util/function/Function;
intermediary field_22322
Lnet/minecraft/class_4121;field_22322:Ljava/util/function/Function;
named posRetriever
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;posRetriever:Ljava/util/function/Function;
-
-
Constructor Details
-
GoToRememberedPositionTask
public GoToRememberedPositionTask(MemoryModuleType<T> memoryType, float speed, int range, boolean requiresWalkTarget, Function<T, Vec3d> posRetriever) - Mappings:
Namespace Name Mixin selector official <init>
Lbew;<init>(Lbjx;FIZLjava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_4121;<init>(Lnet/minecraft/class_4140;FIZLjava/util/function/Function;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZLjava/util/function/Function;)V
-
-
Method Details
-
toBlock
public static GoToRememberedPositionTask<BlockPos> toBlock(MemoryModuleType<BlockPos> memoryType, float speed, int range, boolean requiresWalkTarget) - Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lbjx;FIZ)Lbew;
intermediary method_24601
Lnet/minecraft/class_4121;method_24601(Lnet/minecraft/class_4140;FIZ)Lnet/minecraft/class_4121;
named toBlock
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;toBlock(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZ)Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;
-
toEntity
public static GoToRememberedPositionTask<? extends Entity> toEntity(MemoryModuleType<? extends Entity> memoryType, float speed, int range, boolean requiresWalkTarget) - Mappings:
Namespace Name Mixin selector official b
Lbew;b(Lbjx;FIZ)Lbew;
intermediary method_24603
Lnet/minecraft/class_4121;method_24603(Lnet/minecraft/class_4140;FIZ)Lnet/minecraft/class_4121;
named toEntity
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;toEntity(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIZ)Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lafo;Lbbo;)Z
intermediary method_19002
Lnet/minecraft/class_4121;method_19002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
getPos
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lbbo;)Ldvt;
intermediary method_24600
Lnet/minecraft/class_4121;method_24600(Lnet/minecraft/class_1314;)Lnet/minecraft/class_243;
named getPos
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;getPos(Lnet/minecraft/entity/mob/PathAwareEntity;)Lnet/minecraft/util/math/Vec3d;
-
isWalkTargetPresentAndFar
- Mappings:
Namespace Name Mixin selector official b
Lbew;b(Lbbo;)Z
intermediary method_24602
Lnet/minecraft/class_4121;method_24602(Lnet/minecraft/class_1314;)Z
named isWalkTargetPresentAndFar
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;isWalkTargetPresentAndFar(Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lafo;Lbbo;J)V
intermediary method_19003
Lnet/minecraft/class_4121;method_19003(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
setWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lbbo;Ldvt;F)V
intermediary method_19596
Lnet/minecraft/class_4121;method_19596(Lnet/minecraft/class_1314;Lnet/minecraft/class_243;F)V
named setWalkTarget
Lnet/minecraft/entity/ai/brain/task/GoToRememberedPositionTask;setWalkTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/util/math/Vec3d;F)V
-