public abstract class EntityAITarget extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private boolean |
nearbyOnly |
protected boolean |
shouldCheckSight |
protected EntityLivingBase |
target |
private int |
targetSearchDelay |
private int |
targetSearchStatus |
private int |
targetUnseenTicks |
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 |
---|---|
private boolean |
canEasilyReach(EntityLivingBase target) |
protected double |
getTargetDistance() |
protected boolean |
isSuitableTarget(EntityLivingBase target,
boolean includeInvincibles) |
static boolean |
isSuitableTarget(EntityLiving attacker,
EntityLivingBase target,
boolean includeInvincibles,
boolean checkSight) |
void |
resetTask() |
EntityAITarget |
setUnseenMemoryTicks(int p_190882_1_) |
boolean |
shouldContinueExecuting() |
void |
startExecuting() |
getMutexBits, isInterruptible, setMutexBits, shouldExecute, updateTask
protected final EntityCreature taskOwner
protected boolean shouldCheckSight
private final boolean nearbyOnly
private int targetSearchStatus
private int targetSearchDelay
private int targetUnseenTicks
protected EntityLivingBase target
protected int unseenMemoryTicks
public EntityAITarget(EntityCreature creature, boolean checkSight)
public EntityAITarget(EntityCreature creature, boolean checkSight, boolean onlyNearby)
public boolean shouldContinueExecuting()
shouldContinueExecuting
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, @Nullable EntityLivingBase target, boolean includeInvincibles, boolean checkSight)
protected boolean isSuitableTarget(@Nullable EntityLivingBase target, boolean includeInvincibles)
private boolean canEasilyReach(EntityLivingBase target)
public EntityAITarget setUnseenMemoryTicks(int p_190882_1_)