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, setMutexFlags
protected final TameableEntity tameable
protected final IWorldReader world
public FollowOwnerGoal(TameableEntity tameableIn, double followSpeedIn, float minDistIn, float maxDistIn)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal
protected boolean canTeleportToBlock(BlockPos pos)