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, setMutexBitsprivate 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 EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBaseprotected boolean isTeleportFriendlyBlock(int x,
int p_192381_2_,
int y,
int p_192381_4_,
int p_192381_5_)