static class AbstractFishEntity.SwimGoal extends RandomSwimmingGoal
Modifier and Type | Field and Description |
---|---|
private AbstractFishEntity |
fish |
creature, executionChance, mustUpdate, speed, x, y, z
Constructor and Description |
---|
SwimGoal(AbstractFishEntity fish) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldExecute() |
getPosition
makeUpdate, resetTask, setExecutionChance, shouldContinueExecuting, startExecuting
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
private final AbstractFishEntity fish
public SwimGoal(AbstractFishEntity fish)
public boolean shouldExecute()
shouldExecute
in class RandomWalkingGoal