Class GoToNearbyPositionTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToNearbyPositionTask
public class GoToNearbyPositionTask extends Task<PathAwareEntity>
- Mappings:
Namespace Name official avc
intermediary net/minecraft/class_4219
named net/minecraft/entity/ai/brain/task/GoToNearbyPositionTask
-
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 int
completionRange
private float
field_25753
private int
maxDistance
private MemoryModuleType<GlobalPos>
memoryModuleType
private long
nextRunTime
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description GoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float float2, int completionRange, int maxDistance)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
memoryModuleType
- Mappings:
Namespace Name Mixin selector official b
Lavc;b:Lazf;
intermediary field_18862
Lnet/minecraft/class_4219;field_18862:Lnet/minecraft/class_4140;
named memoryModuleType
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;memoryModuleType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official c
Lavc;c:I
intermediary field_18863
Lnet/minecraft/class_4219;field_18863:I
named completionRange
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;completionRange:I
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector official d
Lavc;d:I
intermediary field_18864
Lnet/minecraft/class_4219;field_18864:I
named maxDistance
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;maxDistance:I
-
field_25753
private final float field_25753- Mappings:
Namespace Name Mixin selector official e
Lavc;e:F
intermediary field_25753
Lnet/minecraft/class_4219;field_25753:F
named field_25753
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;field_25753:F
-
nextRunTime
private long nextRunTime- Mappings:
Namespace Name Mixin selector official f
Lavc;f:J
intermediary field_18865
Lnet/minecraft/class_4219;field_18865:J
named nextRunTime
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;nextRunTime:J
-
-
Constructor Details
-
GoToNearbyPositionTask
public GoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float float2, int completionRange, int maxDistance)- Mappings:
Namespace Name Mixin selector official <init>
Lavc;<init>(Lazf;FII)V
intermediary <init>
Lnet/minecraft/class_4219;<init>(Lnet/minecraft/class_4140;FII)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FII)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavc;a(Laav;Larq;)Z
intermediary method_19607
Lnet/minecraft/class_4219;method_19607(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavc;a(Laav;Larq;J)V
intermediary method_19608
Lnet/minecraft/class_4219;method_19608(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-