Class WalkHomeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.WalkHomeTask
- Mappings:
Namespace Name official bfo
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 final int
private static final int
private static final int
Represents the number of ticks (40) that this task will remember a point of interest after starting to move towards it.private final Long2LongMap
private static final int
private final float
private int
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, 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:
- Mappings:
Namespace Name Mixin selector official a
Lbfo;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:
- Mappings:
Namespace Name Mixin selector official d
Lbfo;d: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:
- Mappings:
Namespace Name Mixin selector official e
Lbfo;e: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:
- Mappings:
Namespace Name Mixin selector official f
Lbfo;f: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 g
Lbfo;g: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 h
Lbfo;h: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 i
Lbfo;i: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 j
Lbfo;j: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>
Lbfo;<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
Lbdo;a(Lagg;Lbcc;)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
Lbdo;a(Lagg;Lbcc;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
-