public class FollowOwnerGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
protected TameableEntity |
tameable |
protected IWorldReader |
world |
| Constructor and Description |
|---|
FollowOwnerGoal(TameableEntity tameableIn,
double followSpeedIn,
float minDistIn,
float maxDistIn) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canTeleportToBlock(BlockPos pos) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlagsprotected final TameableEntity tameable
protected final IWorldReader world
public FollowOwnerGoal(TameableEntity tameableIn, double followSpeedIn, float minDistIn, float maxDistIn)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goalprotected boolean canTeleportToBlock(BlockPos pos)