public class EntityAIFollowOwner extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private double |
followSpeed |
(package private) float |
maxDist |
(package private) float |
minDist |
private float |
oldWaterCost |
private EntityLivingBase |
owner |
private PathNavigate |
petPathfinder |
private EntityTameable |
tameable |
private int |
timeToRecalcPath |
(package private) World |
world |
Constructor and Description |
---|
EntityAIFollowOwner(EntityTameable tameableIn,
double followSpeedIn,
float minDistIn,
float maxDistIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isTeleportFriendlyBlock(int x,
int p_192381_2_,
int y,
int p_192381_4_,
int p_192381_5_) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits
private final EntityTameable tameable
private EntityLivingBase owner
World world
private final double followSpeed
private final PathNavigate petPathfinder
private int timeToRecalcPath
float maxDist
float minDist
private float oldWaterCost
public EntityAIFollowOwner(EntityTameable tameableIn, double followSpeedIn, float minDistIn, float maxDistIn)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
protected boolean isTeleportFriendlyBlock(int x, int p_192381_2_, int y, int p_192381_4_, int p_192381_5_)