Class WalkHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.WalkHomeTask
- Mappings:
Namespace Name official axc
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
Modifier and TypeFieldDescriptionprivate long
private static int
private static int
private static int
Represents the number of ticks (40) that this task will remember a point of interest after starting to move towards it.private Long2LongMap
private static int
private float
private int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
POI_EXPIRY
private static final int POI_EXPIRYRepresents the number of ticks (40) that this task will remember a point of interest after starting to move towards it.- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Laxc;a:I
intermediary field_30161
Lnet/minecraft/class_4290;field_30161:I
named POI_EXPIRY
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;POI_EXPIRY:I
-
MAX_TRIES
private static final int MAX_TRIES- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Laxc;c:I
intermediary field_30162
Lnet/minecraft/class_4290;field_30162:I
named MAX_TRIES
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;MAX_TRIES:I
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Laxc;d:I
intermediary field_30163
Lnet/minecraft/class_4290;field_30163:I
named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;RUN_TIME:I
-
MAX_DISTANCE
private static final int MAX_DISTANCE- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Laxc;e:I
intermediary field_30164
Lnet/minecraft/class_4290;field_30164:I
named MAX_DISTANCE
Lnet/minecraft/entity/ai/brain/task/WalkHomeTask;MAX_DISTANCE:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official f
Laxc;f: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 g
Laxc;g: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 h
Laxc;h: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 i
Laxc;i: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>
Laxc;<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
Lavg;a(Labr;Latt;)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
Lavg;a(Labr;Latt;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
-