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, toString
private final DolphinEntity dolphin
private final double speed
private PlayerEntity targetPlayer
SwimWithPlayerGoal(DolphinEntity dolphinIn, double speedIn)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal