Class WalkTowardsLandTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.WalkTowardsLandTask
- Mappings:
Namespace Name official bgl
intermediary net/minecraft/class_7097
named net/minecraft/entity/ai/brain/task/WalkTowardsLandTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final float
private static final int
private long
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
TASK_COOLDOWN
private static final int TASK_COOLDOWN- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbgl;a:I
intermediary field_37433
Lnet/minecraft/class_7097;field_37433:I
named TASK_COOLDOWN
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;TASK_COOLDOWN:I
-
range
private final int range- Mappings:
Namespace Name Mixin selector official d
Lbgl;d:I
intermediary field_37434
Lnet/minecraft/class_7097;field_37434:I
named range
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;range:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official e
Lbgl;e:F
intermediary field_37435
Lnet/minecraft/class_7097;field_37435:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;speed:F
-
walkTowardsLandTime
private long walkTowardsLandTime- Mappings:
Namespace Name Mixin selector official f
Lbgl;f:J
intermediary field_37436
Lnet/minecraft/class_7097;field_37436:J
named walkTowardsLandTime
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;walkTowardsLandTime:J
-
-
Constructor Details
-
WalkTowardsLandTask
public WalkTowardsLandTask(int range, float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbgl;<init>(IF)V
intermediary <init>
Lnet/minecraft/class_7097;<init>(IF)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;<init>(IF)V
-
-
Method Details
-
finishRunning
- Overrides:
finishRunning
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbgl;a(Lagg;Lbcl;J)V
intermediary method_41344
Lnet/minecraft/class_7097;method_41344(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbgl;a(Lagg;Lbcl;)Z
intermediary method_41343
Lnet/minecraft/class_7097;method_41343(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbgl;b(Lagg;Lbcl;J)V
intermediary method_41345
Lnet/minecraft/class_7097;method_41345(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/WalkTowardsLandTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-