Package net.minecraft.src
Class EntityAIWatchClosest
java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAIWatchClosest
- Direct Known Subclasses:
EntityAILookAtTradePlayer,EntityAIWatchClosest2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EntityThe closest entity which is being watched by this one. -
Constructor Summary
ConstructorsConstructorDescriptionEntityAIWatchClosest(EntityLiving par1EntityLiving, Class par2Class, float par3) EntityAIWatchClosest(EntityLiving par1EntityLiving, Class par2Class, float par3, float par4) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether an in-progress EntityAIBase should continue executingvoidResets the taskbooleanReturns whether the EntityAIBase should begin execution.voidExecute a one shot task or start executing a continuous taskvoidUpdates the taskMethods inherited from class net.minecraft.src.EntityAIBase
getMutexBits, isContinuous, setMutexBits
-
Field Details
-
closestEntity
The closest entity which is being watched by this one.
-
-
Constructor Details
-
EntityAIWatchClosest
-
EntityAIWatchClosest
-
-
Method Details
-
shouldExecute
public boolean shouldExecute()Returns whether the EntityAIBase should begin execution.- Specified by:
shouldExecutein classEntityAIBase
-
continueExecuting
public boolean continueExecuting()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
continueExecutingin classEntityAIBase
-
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
-
updateTask
public void updateTask()Updates the task- Overrides:
updateTaskin classEntityAIBase
-