Class GoToNearbyPositionTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToNearbyPositionTask
- Mappings:
Namespace Name official bgh
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
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final MemoryModuleType<GlobalPos>
private long
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionGoToNearbyPositionTask
(MemoryModuleType<GlobalPos> memoryModuleType, float walkSpeed, int completionRange, int maxDistance) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 a
Lbgh;a:Lbku;
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 d
Lbgh;d: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 e
Lbgh;e:I
intermediary field_18864
Lnet/minecraft/class_4219;field_18864:I
named maxDistance
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;maxDistance:I
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector official f
Lbgh;f:F
intermediary field_25753
Lnet/minecraft/class_4219;field_25753:F
named walkSpeed
Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;walkSpeed:F
-
nextRunTime
private long nextRunTime- Mappings:
Namespace Name Mixin selector official g
Lbgh;g: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 walkSpeed, int completionRange, int maxDistance) - Mappings:
Namespace Name Mixin selector official <init>
Lbgh;<init>(Lbku;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
Lbgh;a(Lagg;Lbcl;)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
Lbgh;a(Lagg;Lbcl;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
-