public class EntityAIFindEntityNearest extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends EntityLivingBase> |
field_179439_f |
private EntityAINearestAttackableTarget.Sorter |
field_179440_d |
private EntityLivingBase |
field_179441_e |
private EntityLiving |
field_179442_b |
private com.google.common.base.Predicate<EntityLivingBase> |
field_179443_c |
private static org.apache.logging.log4j.Logger |
field_179444_a |
| Constructor and Description |
|---|
EntityAIFindEntityNearest(EntityLiving p_i45884_1_,
java.lang.Class<? extends EntityLivingBase> p_i45884_2_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
protected double |
func_179438_f() |
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
|
getMutexBits, isInterruptible, setMutexBits, updateTaskprivate static final org.apache.logging.log4j.Logger field_179444_a
private EntityLiving field_179442_b
private final com.google.common.base.Predicate<EntityLivingBase> field_179443_c
private final EntityAINearestAttackableTarget.Sorter field_179440_d
private EntityLivingBase field_179441_e
private java.lang.Class<? extends EntityLivingBase> field_179439_f
public EntityAIFindEntityNearest(EntityLiving p_i45884_1_, java.lang.Class<? extends EntityLivingBase> p_i45884_2_)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBaseprotected double func_179438_f()