public class EntityAIFindEntityNearest extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends EntityLivingBase> |
classToCheck |
private static org.apache.logging.log4j.Logger |
LOGGER |
private EntityLiving |
mob |
private com.google.common.base.Predicate<EntityLivingBase> |
predicate |
private EntityAINearestAttackableTarget.Sorter |
sorter |
private EntityLivingBase |
target |
| Constructor and Description |
|---|
EntityAIFindEntityNearest(EntityLiving mobIn,
java.lang.Class<? extends EntityLivingBase> p_i45884_2_) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getFollowRange() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, setMutexBits, updateTaskprivate static final org.apache.logging.log4j.Logger LOGGER
private final EntityLiving mob
private final com.google.common.base.Predicate<EntityLivingBase> predicate
private final EntityAINearestAttackableTarget.Sorter sorter
private EntityLivingBase target
private final java.lang.Class<? extends EntityLivingBase> classToCheck
public EntityAIFindEntityNearest(EntityLiving mobIn, java.lang.Class<? extends EntityLivingBase> p_i45884_2_)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBaseprotected double getFollowRange()