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>
-
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
-
-
Constructor Details
-
StayAboveWaterTask
public StayAboveWaterTask(float minWaterHeight)
-
-
Method Details
-
shouldRun
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<MobEntity>
-
keepRunning
- Overrides:
keepRunning
in classTask<MobEntity>
-