YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.ai.EntityAITarget Class Reference
Inheritance diagram for net.minecraft.entity.ai.EntityAITarget:
net.minecraft.entity.ai.EntityAIBase net.minecraft.entity.ai.EntityAIDefendVillage net.minecraft.entity.ai.EntityAIHurtByTarget net.minecraft.entity.ai.EntityAINearestAttackableTarget net.minecraft.entity.ai.EntityAIOwnerHurtByTarget net.minecraft.entity.ai.EntityAIOwnerHurtTarget net.minecraft.entity.ai.EntityAITargetNonTamed

Public Member Functions

 EntityAITarget (EntityLiving par1EntityLiving, float par2, boolean par3)
 
 EntityAITarget (EntityLiving par1EntityLiving, float par2, boolean par3, boolean par4)
 
boolean continueExecuting ()
 
void startExecuting ()
 
void resetTask ()
 
- Public Member Functions inherited from net.minecraft.entity.ai.EntityAIBase
abstract boolean shouldExecute ()
 
boolean continueExecuting ()
 
boolean isInterruptible ()
 
void startExecuting ()
 
void resetTask ()
 
void updateTask ()
 
void setMutexBits (int par1)
 
int getMutexBits ()
 

Protected Member Functions

boolean isSuitableTarget (EntityLiving par1EntityLiving, boolean par2)
 

Protected Attributes

EntityLiving taskOwner
 
float targetDistance
 
boolean shouldCheckSight
 

Constructor & Destructor Documentation

net.minecraft.entity.ai.EntityAITarget.EntityAITarget ( EntityLiving  par1EntityLiving,
float  par2,
boolean  par3 
)
net.minecraft.entity.ai.EntityAITarget.EntityAITarget ( EntityLiving  par1EntityLiving,
float  par2,
boolean  par3,
boolean  par4 
)

Member Function Documentation

boolean net.minecraft.entity.ai.EntityAITarget.continueExecuting ( )

Returns whether an in-progress EntityAIBase should continue executing

boolean net.minecraft.entity.ai.EntityAITarget.isSuitableTarget ( EntityLiving  par1EntityLiving,
boolean  par2 
)
protected

A method used to see if an entity is a suitable target through a number of checks.

void net.minecraft.entity.ai.EntityAITarget.resetTask ( )

Resets the task

void net.minecraft.entity.ai.EntityAITarget.startExecuting ( )

Execute a one shot task or start executing a continuous task

Member Data Documentation

boolean net.minecraft.entity.ai.EntityAITarget.shouldCheckSight
protected

If true, EntityAI targets must be able to be seen (cannot be blocked by walls) to be suitable targets.

float net.minecraft.entity.ai.EntityAITarget.targetDistance
protected
EntityLiving net.minecraft.entity.ai.EntityAITarget.taskOwner
protected

The entity that this task belongs to


The documentation for this class was generated from the following file: