public abstract class EntityAITarget extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
shouldCheckSight
If true, EntityAI targets must be able to be seen (cannot be blocked by walls) to be suitable targets.
|
protected EntityCreature |
taskOwner
The entity that this task belongs to
|
| Constructor and Description |
|---|
EntityAITarget(EntityCreature p_i1669_1_,
boolean p_i1669_2_) |
EntityAITarget(EntityCreature p_i1670_1_,
boolean p_i1670_2_,
boolean p_i1670_3_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
protected double |
getTargetDistance() |
protected boolean |
isSuitableTarget(EntityLivingBase p_75296_1_,
boolean p_75296_2_)
A method used to see if an entity is a suitable target through a number of checks.
|
void |
resetTask()
Resets the task
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
getMutexBits, isInterruptible, setMutexBits, shouldExecute, updateTaskprotected EntityCreature taskOwner
protected boolean shouldCheckSight
public EntityAITarget(EntityCreature p_i1669_1_, boolean p_i1669_2_)
public EntityAITarget(EntityCreature p_i1670_1_, boolean p_i1670_2_, boolean p_i1670_3_)
public boolean continueExecuting()
continueExecuting in class EntityAIBaseprotected double getTargetDistance()
public void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBaseprotected boolean isSuitableTarget(EntityLivingBase p_75296_1_, boolean p_75296_2_)