public class EntityAIFollowOwner extends EntityAIBase
| 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()
Reset the task's internal state.
|
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Keep ticking a continuous task that has already been started
|
getMutexBits, isInterruptible, setMutexBitspublic 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_)