Class FindWalkTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.FindWalkTargetTask
- Direct Known Subclasses:
RunAroundAfterRaidTask
- Mappings:
Namespace Name official bgt
intermediary net/minecraft/class_4117
named net/minecraft/entity/ai/brain/task/FindWalkTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final int
private final int
private static final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionFindWalkTargetTask
(float walkSpeed) FindWalkTargetTask
(float walkSpeed, int maxHorizontalDistance, int maxVerticalDistance) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) private void
updateWalkTarget
(PathAwareEntity entity) private void
updateWalkTarget
(PathAwareEntity entity, ChunkSectionPos pos) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
MIN_RUN_TIME
private static final int MIN_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbgt;a:I
intermediary field_30186
Lnet/minecraft/class_4117;field_30186:I
named MIN_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;MIN_RUN_TIME:I
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbgt;d:I
intermediary field_30187
Lnet/minecraft/class_4117;field_30187:I
named MAX_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;MAX_RUN_TIME:I
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector official e
Lbgt;e:F
intermediary field_18375
Lnet/minecraft/class_4117;field_18375:F
named walkSpeed
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;walkSpeed:F
-
maxHorizontalDistance
private final int maxHorizontalDistance- Mappings:
Namespace Name Mixin selector official f
Lbgt;f:I
intermediary field_19352
Lnet/minecraft/class_4117;field_19352:I
named maxHorizontalDistance
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;maxHorizontalDistance:I
-
maxVerticalDistance
private final int maxVerticalDistance- Mappings:
Namespace Name Mixin selector official g
Lbgt;g:I
intermediary field_19353
Lnet/minecraft/class_4117;field_19353:I
named maxVerticalDistance
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;maxVerticalDistance:I
-
-
Constructor Details
-
FindWalkTargetTask
public FindWalkTargetTask(float walkSpeed) - Mappings:
Namespace Name Mixin selector official <init>
Lbgt;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4117;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;<init>(F)V
-
FindWalkTargetTask
public FindWalkTargetTask(float walkSpeed, int maxHorizontalDistance, int maxVerticalDistance) - Mappings:
Namespace Name Mixin selector official <init>
Lbgt;<init>(FII)V
intermediary <init>
Lnet/minecraft/class_4117;<init>(FII)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;<init>(FII)V
-
-
Method Details
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbgt;a(Lagg;Lbcl;J)V
intermediary method_18996
Lnet/minecraft/class_4117;method_18996(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
updateWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbgt;a(Lbcl;Lhq;)V
intermediary method_20430
Lnet/minecraft/class_4117;method_20430(Lnet/minecraft/class_1314;Lnet/minecraft/class_4076;)V
named updateWalkTarget
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;updateWalkTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/util/math/ChunkSectionPos;)V
-
updateWalkTarget
- Mappings:
Namespace Name Mixin selector official a
Lbgt;a(Lbcl;)V
intermediary method_20429
Lnet/minecraft/class_4117;method_20429(Lnet/minecraft/class_1314;)V
named updateWalkTarget
Lnet/minecraft/entity/ai/brain/task/FindWalkTargetTask;updateWalkTarget(Lnet/minecraft/entity/mob/PathAwareEntity;)V
-