Class WalkHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.WalkHomeTask
public class WalkHomeTask extends Task<LivingEntity>
- Mappings:
Namespace Name official auk
intermediary net/minecraft/class_4290
named net/minecraft/entity/ai/brain/task/WalkHomeTask
-
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 long
expiryTimeLimit
private Long2LongMap
positionToExpiry
private float
speed
private int
tries
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description WalkHomeTask(float speed)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld world, LivingEntity entity, long time)
protected boolean
shouldRun(ServerWorld world, LivingEntity entity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official b
Lauk;b:F
intermediary field_20290
Lnet/minecraft/class_4290;field_20290:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;speed:F
-
positionToExpiry
- Mappings:
Namespace Name Mixin selector official c
Lauk;c:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
intermediary field_20291
Lnet/minecraft/class_4290;field_20291:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
named positionToExpiry
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;positionToExpiry:Lit/unimi/dsi/fastutil/longs/Long2LongMap;
-
tries
private int tries- Mappings:
Namespace Name Mixin selector official d
Lauk;d:I
intermediary field_20292
Lnet/minecraft/class_4290;field_20292:I
named tries
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;tries:I
-
expiryTimeLimit
private long expiryTimeLimit- Mappings:
Namespace Name Mixin selector official e
Lauk;e:J
intermediary field_19260
Lnet/minecraft/class_4290;field_19260:J
named expiryTimeLimit
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;expiryTimeLimit:J
-
-
Constructor Details
-
WalkHomeTask
public WalkHomeTask(float speed)- Mappings:
Namespace Name Mixin selector official <init>
Lauk;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4290;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;<init>(F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-