static class DolphinEntity.SwimWithPlayerGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
private DolphinEntity |
dolphin |
private double |
speed |
private PlayerEntity |
targetPlayer |
| Constructor and Description |
|---|
SwimWithPlayerGoal(DolphinEntity dolphinIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toStringprivate final DolphinEntity dolphin
private final double speed
private PlayerEntity targetPlayer
SwimWithPlayerGoal(DolphinEntity dolphinIn, double speedIn)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goal