public class EntityAIFindEntityNearestPlayer extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private EntityLiving |
entityLiving |
private EntityLivingBase |
entityTarget |
private static org.apache.logging.log4j.Logger |
LOGGER |
private com.google.common.base.Predicate<Entity> |
predicate |
private EntityAINearestAttackableTarget.Sorter |
sorter |
Constructor and Description |
---|
EntityAIFindEntityNearestPlayer(EntityLiving entityLivingIn) |
Modifier and Type | Method and Description |
---|---|
protected double |
maxTargetRange() |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexBits, isInterruptible, setMutexBits, updateTask
private static final org.apache.logging.log4j.Logger LOGGER
private final EntityLiving entityLiving
private final com.google.common.base.Predicate<Entity> predicate
private final EntityAINearestAttackableTarget.Sorter sorter
private EntityLivingBase entityTarget
public EntityAIFindEntityNearestPlayer(EntityLiving entityLivingIn)
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 maxTargetRange()