public class EntityAIAvoidEntity<T extends Entity> extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
protected T |
closestLivingEntity |
protected EntityCreature |
theEntity
The entity we are attached to
|
Constructor and Description |
---|
EntityAIAvoidEntity(EntityCreature p_i46405_1_,
java.lang.Class<T> p_i46405_2_,
<any> p_i46405_3_,
float p_i46405_4_,
double p_i46405_5_,
double p_i46405_7_) |
EntityAIAvoidEntity(EntityCreature p_i46404_1_,
java.lang.Class<T> p_i46404_2_,
float p_i46404_3_,
double p_i46404_4_,
double p_i46404_6_) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
getMutexBits, isInterruptible, setMutexBits
protected EntityCreature theEntity
public EntityAIAvoidEntity(EntityCreature p_i46404_1_, java.lang.Class<T> p_i46404_2_, float p_i46404_3_, double p_i46404_4_, double p_i46404_6_)
public EntityAIAvoidEntity(EntityCreature p_i46405_1_, java.lang.Class<T> p_i46405_2_, <any> p_i46405_3_, float p_i46405_4_, double p_i46405_5_, double p_i46405_7_)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean continueExecuting()
continueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase