Package net.minecraft.src
Class EntityAIBase
java.lang.Object
net.minecraft.src.EntityAIBase
- Direct Known Subclasses:
AnimalFleeBehavior,DireWolfHowlBehavior,EntityAIArrowAttack,EntityAIAttackOnCollide,EntityAIAvoidEntity,EntityAIBeg,EntityAIControlledByPlayer,EntityAICreeperSwell,EntityAIDoorInteract,EntityAIEatGrass,EntityAIFleeSun,EntityAIFollowGolem,EntityAIFollowOwner,EntityAIFollowParent,EntityAILeapAtTarget,EntityAILookAtVillager,EntityAILookIdle,EntityAIMate,EntityAIMoveIndoors,EntityAIMoveThroughVillage,EntityAIMoveTowardsRestriction,EntityAIMoveTowardsTarget,EntityAIOcelotAttack,EntityAIOcelotSit,EntityAIPanic,EntityAIPlay,EntityAIRestrictOpenDoor,EntityAIRestrictSun,EntityAIRunAroundLikeCrazy,EntityAISit,EntityAISwimming,EntityAITarget,EntityAITempt,EntityAITradePlayer,EntityAIVillagerMate,EntityAIWander,EntityAIWatchClosest,GrazeBehavior,MoveToGrazeBehavior,MoveToLooseFoodBehavior,MultiTemptBehavior,PanicOnHeadCrabBehavior,SimpleWanderBehavior,SkeletonArrowAttackBehavior,VillagerBreedBehavior,WolfHowlBehavior,ZombieBreakBarricadeBehavior
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether an in-progress EntityAIBase should continue executingintGet a bitmask telling which other tasks may not run concurrently.booleanDetermine if this AI Task is interruptible by a higher (= lower value) priority task.voidResets the taskvoidsetMutexBits(int par1) Sets a bitmask telling which other tasks may not run concurrently.abstract booleanReturns whether the EntityAIBase should begin execution.voidExecute a one shot task or start executing a continuous taskvoidUpdates the task
-
Constructor Details
-
EntityAIBase
public EntityAIBase()
-
-
Method Details
-
shouldExecute
public abstract boolean shouldExecute()Returns whether the EntityAIBase should begin execution. -
continueExecuting
public boolean continueExecuting()Returns whether an in-progress EntityAIBase should continue executing -
isContinuous
public boolean isContinuous()Determine if this AI Task is interruptible by a higher (= lower value) priority task. -
startExecuting
public void startExecuting()Execute a one shot task or start executing a continuous task -
resetTask
public void resetTask()Resets the task -
updateTask
public void updateTask()Updates the task -
setMutexBits
public void setMutexBits(int par1) Sets a bitmask telling which other tasks may not run concurrently. The test is a simple bitwise AND - if it yields zero, the two tasks may run concurrently, if not - they must run exclusively from each other. -
getMutexBits
public int getMutexBits()Get a bitmask telling which other tasks may not run concurrently. The test is a simple bitwise AND - if it yields zero, the two tasks may run concurrently, if not - they must run exclusively from each other.
-