static class DolphinEntity.SwimWithPlayerGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
closestPlayer |
private DolphinEntity |
dolphin |
private double |
speed |
Constructor and Description |
---|
SwimWithPlayerGoal(DolphinEntity dolphin,
double speed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
private final DolphinEntity dolphin
private final double speed
private PlayerEntity closestPlayer
SwimWithPlayerGoal(DolphinEntity dolphin, double speed)
public boolean shouldContinue()
shouldContinue
in class Goal