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 floatchanceFields 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 voidkeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)protected booleanshouldKeepRunning(ServerWorld serverWorld, MobEntity mobEntity, long long2)protected booleanshouldRun(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:
shouldKeepRunningin classTask<MobEntity>
-
keepRunning
- Overrides:
keepRunningin classTask<MobEntity>
-