public class EntityAIAvoidEntity<T extends Entity> extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private float |
avoidDistance |
private com.google.common.base.Predicate<? super T> |
avoidTargetSelector |
private com.google.common.base.Predicate<Entity> |
canBeSeenSelector |
protected T |
closestLivingEntity |
private PathEntity |
entityPathEntity
The PathEntity of our entity
|
private PathNavigate |
entityPathNavigate
The PathNavigate of our entity
|
private double |
farSpeed |
private java.lang.Class<T> |
field_181064_i |
private double |
nearSpeed |
protected EntityCreature |
theEntity
The entity we are attached to
|
Constructor and Description |
---|
EntityAIAvoidEntity(EntityCreature p_i46404_1_,
java.lang.Class<T> p_i46404_2_,
float p_i46404_3_,
double p_i46404_4_,
double p_i46404_6_) |
EntityAIAvoidEntity(EntityCreature p_i46405_1_,
java.lang.Class<T> p_i46405_2_,
com.google.common.base.Predicate<? super T> p_i46405_3_,
float p_i46405_4_,
double p_i46405_5_,
double p_i46405_7_) |
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
private final com.google.common.base.Predicate<Entity> canBeSeenSelector
protected EntityCreature theEntity
private double farSpeed
private double nearSpeed
private float avoidDistance
private PathEntity entityPathEntity
private PathNavigate entityPathNavigate
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_, com.google.common.base.Predicate<? super T> 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