public class EntityAIFollowOwner extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
protected IWorldReaderBase |
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 z,
int y,
int xOffset,
int zOffset) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexBits, isInterruptible, setMutexBits
protected final IWorldReaderBase world
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 tick()
tick
in class EntityAIBase
protected boolean isTeleportFriendlyBlock(int x, int z, int y, int xOffset, int zOffset)