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, updateTask
private 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 EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
protected double getFollowRange()