Class StayAboveWaterTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.StayAboveWaterTask
public class StayAboveWaterTask extends Task<MobEntity>
- Mappings:
Namespace Name official ave
intermediary net/minecraft/class_4125
named net/minecraft/entity/ai/brain/task/StayAboveWaterTask
-
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 float
chance
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description StayAboveWaterTask(float minWaterHeight)
-
Method Summary
Modifier and Type Method Description protected void
keepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected boolean
shouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, run, stop, tick, toString, tryStarting
-
Field Details
-
chance
private final float chance- Mappings:
Namespace Name Mixin selector official b
Lave;b:F
intermediary field_18387
Lnet/minecraft/class_4125;field_18387:F
named chance
Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;chance:F
-
-
Constructor Details
-
StayAboveWaterTask
public StayAboveWaterTask(float minWaterHeight)- Mappings:
Namespace Name Mixin selector official <init>
Lave;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4125;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;<init>(F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lave;a(Laav;Larj;)Z
intermediary method_19010
Lnet/minecraft/class_4125;method_19010(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lave;a(Laav;Larj;J)Z
intermediary method_19011
Lnet/minecraft/class_4125;method_19011(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
-
keepRunning
- Overrides:
keepRunning
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official b
Lave;b(Laav;Larj;J)V
intermediary method_19012
Lnet/minecraft/class_4125;method_19012(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/StayAboveWaterTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-