public abstract class EntityAITarget extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
protected boolean |
shouldCheckSight |
protected EntityLivingBase |
target |
protected EntityCreature |
taskOwner |
protected int |
unseenMemoryTicks |
Constructor and Description |
---|
EntityAITarget(EntityCreature creature,
boolean checkSight) |
EntityAITarget(EntityCreature creature,
boolean checkSight,
boolean onlyNearby) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting() |
protected double |
getTargetDistance() |
protected boolean |
isSuitableTarget(EntityLivingBase target,
boolean includeInvincibles) |
static boolean |
isSuitableTarget(EntityLiving attacker,
EntityLivingBase target,
boolean includeInvincibles,
boolean checkSight) |
void |
resetTask() |
void |
startExecuting() |
getMutexBits, isInterruptible, setMutexBits, shouldExecute, updateTask
protected final EntityCreature taskOwner
protected boolean shouldCheckSight
protected EntityLivingBase target
protected int unseenMemoryTicks
public EntityAITarget(EntityCreature creature, boolean checkSight)
public EntityAITarget(EntityCreature creature, boolean checkSight, boolean onlyNearby)
public boolean continueExecuting()
continueExecuting
in class EntityAIBase
protected double getTargetDistance()
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public static boolean isSuitableTarget(EntityLiving attacker, EntityLivingBase target, boolean includeInvincibles, boolean checkSight)
protected boolean isSuitableTarget(EntityLivingBase target, boolean includeInvincibles)