public class DolphinJumpGoal extends DiveJumpingGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
chance |
private DolphinEntity |
dolphin |
private boolean |
inWater |
private static int[] |
OFFSET_MULTIPLIERS |
Constructor and Description |
---|
DolphinJumpGoal(DolphinEntity dolphin,
int chance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
canStop() |
private boolean |
isAirAbove(BlockPos pos,
int xOffset,
int zOffset,
int multiplier) |
private boolean |
isWater(BlockPos pos,
int xOffset,
int zOffset,
int multiplier) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
getControls, setControls, toString
private static final int[] OFFSET_MULTIPLIERS
private final DolphinEntity dolphin
private final int chance
private boolean inWater
public DolphinJumpGoal(DolphinEntity dolphin, int chance)
private boolean isWater(BlockPos pos, int xOffset, int zOffset, int multiplier)
private boolean isAirAbove(BlockPos pos, int xOffset, int zOffset, int multiplier)
public boolean shouldContinue()
shouldContinue
in class Goal