Package net.minecraft.src
Class EntityAITarget
java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAITarget
- Direct Known Subclasses:
EntityAIDefendVillage,EntityAIHurtByTarget,EntityAINearestAttackableTarget,EntityAIOwnerHurtByTarget,EntityAIOwnerHurtTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanIf true, EntityAI targets must be able to be seen (cannot be blocked by walls) to be suitable targets.protected EntityCreatureThe entity that this task belongs to -
Constructor Summary
ConstructorsConstructorDescriptionEntityAITarget(EntityCreature par1EntityCreature, boolean par2) EntityAITarget(EntityCreature par1EntityCreature, boolean par2, boolean par3) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether an in-progress EntityAIBase should continue executingprotected doubleprotected booleanisSuitableTarget(EntityLivingBase par1EntityLivingBase, boolean par2) A method used to see if an entity is a suitable target through a number of checks.voidResets the taskvoidExecute a one shot task or start executing a continuous taskMethods inherited from class net.minecraft.src.EntityAIBase
getMutexBits, isContinuous, setMutexBits, shouldExecute, updateTask
-
Field Details
-
taskOwner
The entity that this task belongs to -
shouldCheckSight
protected boolean shouldCheckSightIf true, EntityAI targets must be able to be seen (cannot be blocked by walls) to be suitable targets. -
ignoreTargetsOutsideHome
protected boolean ignoreTargetsOutsideHome
-
-
Constructor Details
-
EntityAITarget
-
EntityAITarget
-
-
Method Details
-
continueExecuting
public boolean continueExecuting()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
continueExecutingin classEntityAIBase
-
getTargetDistance
protected double getTargetDistance() -
startExecuting
public void startExecuting()Execute a one shot task or start executing a continuous task- Overrides:
startExecutingin classEntityAIBase
-
resetTask
public void resetTask()Resets the task- Overrides:
resetTaskin classEntityAIBase
-
isSuitableTarget
A method used to see if an entity is a suitable target through a number of checks.
-