Class WalkTowardsWaterTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.WalkTowardsWaterTask
- Mappings:
Namespace Name official bfp
intermediary net/minecraft/class_7098
named net/minecraft/entity/ai/brain/task/WalkTowardsWaterTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
private long
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
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
-
range
private final int range- Mappings:
Namespace Name Mixin selector official a
Lbfp;a:I
intermediary field_37437
Lnet/minecraft/class_7098;field_37437:I
named range
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;range:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official d
Lbfp;d:F
intermediary field_37438
Lnet/minecraft/class_7098;field_37438:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;speed:F
-
walkTowardsWaterTime
private long walkTowardsWaterTime- Mappings:
Namespace Name Mixin selector official e
Lbfp;e:J
intermediary field_37439
Lnet/minecraft/class_7098;field_37439:J
named walkTowardsWaterTime
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;walkTowardsWaterTime:J
-
-
Constructor Details
-
WalkTowardsWaterTask
public WalkTowardsWaterTask(int range, float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbfp;<init>(IF)V
intermediary <init>
Lnet/minecraft/class_7098;<init>(IF)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;<init>(IF)V
-
-
Method Details
-
finishRunning
- Overrides:
finishRunning
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbfp;a(Lafo;Lbbo;J)V
intermediary method_41347
Lnet/minecraft/class_7098;method_41347(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;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
Lbfp;a(Lafo;Lbbo;)Z
intermediary method_41346
Lnet/minecraft/class_7098;method_41346(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;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
Lbfp;b(Lafo;Lbbo;J)V
intermediary method_41348
Lnet/minecraft/class_7098;method_41348(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/WalkTowardsWaterTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-