Class WanderAroundTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.WanderAroundTask
- Mappings:
Namespace Name official awn
intermediary net/minecraft/class_4112
named net/minecraft/entity/ai/brain/task/WanderAroundTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private int
private float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private boolean
hasFinishedPath
(MobEntity entity, WalkTarget walkTarget, long time) private boolean
hasReached
(MobEntity entity, WalkTarget walkTarget) protected void
keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
MAX_UPDATE_COUNTDOWN
private static final int MAX_UPDATE_COUNTDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lawn;a:I
intermediary field_30150
Lnet/minecraft/class_4112;field_30150:I
named MAX_UPDATE_COUNTDOWN
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;MAX_UPDATE_COUNTDOWN:I
-
pathUpdateCountdownTicks
private int pathUpdateCountdownTicks- Mappings:
Namespace Name Mixin selector official c
Lawn;c:I
intermediary field_18964
Lnet/minecraft/class_4112;field_18964:I
named pathUpdateCountdownTicks
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;pathUpdateCountdownTicks:I
-
path
- Mappings:
Namespace Name Mixin selector official d
Lawn;d:Ldha;
intermediary field_18369
Lnet/minecraft/class_4112;field_18369:Lnet/minecraft/class_11;
named path
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;path:Lnet/minecraft/entity/ai/pathing/Path;
-
lookTargetPos
- Mappings:
Namespace Name Mixin selector official e
Lawn;e:Lgg;
intermediary field_18370
Lnet/minecraft/class_4112;field_18370:Lnet/minecraft/class_2338;
named lookTargetPos
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;lookTargetPos:Lnet/minecraft/util/math/BlockPos;
-
speed
private float speed- Mappings:
Namespace Name Mixin selector official f
Lawn;f:F
intermediary field_18371
Lnet/minecraft/class_4112;field_18371:F
named speed
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;speed:F
-
-
Constructor Details
-
WanderAroundTask
public WanderAroundTask() -
WanderAroundTask
public WanderAroundTask(int minRunTime, int maxRunTime) - Mappings:
Namespace Name Mixin selector official <init>
Lawn;<init>(II)V
intermediary <init>
Lnet/minecraft/class_4112;<init>(II)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;<init>(II)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawn;a(Labr;Latv;)Z
intermediary method_18978
Lnet/minecraft/class_4112;method_18978(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawn;a(Labr;Latv;J)Z
intermediary method_18979
Lnet/minecraft/class_4112;method_18979(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
-
finishRunning
- Overrides:
finishRunning
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official b
Lawn;b(Labr;Latv;J)V
intermediary method_18981
Lnet/minecraft/class_4112;method_18981(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
run
- Overrides:
run
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official c
Lawn;c(Labr;Latv;J)V
intermediary method_18982
Lnet/minecraft/class_4112;method_18982(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named run
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official d
Lawn;d(Labr;Latv;J)V
intermediary method_18983
Lnet/minecraft/class_4112;method_18983(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
hasFinishedPath
- Mappings:
Namespace Name Mixin selector official a
Lawn;a(Latv;Lbbv;J)Z
intermediary method_18977
Lnet/minecraft/class_4112;method_18977(Lnet/minecraft/class_1308;Lnet/minecraft/class_4142;J)Z
named hasFinishedPath
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;hasFinishedPath(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/ai/brain/WalkTarget;J)Z
-
hasReached
- Mappings:
Namespace Name Mixin selector official a
Lawn;a(Latv;Lbbv;)Z
intermediary method_18980
Lnet/minecraft/class_4112;method_18980(Lnet/minecraft/class_1308;Lnet/minecraft/class_4142;)Z
named hasReached
Lnet/minecraft/entity/ai/brain/task/WanderAroundTask;hasReached(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/ai/brain/WalkTarget;)Z
-