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

public abstract class EntityAIBase extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether an in-progress EntityAIBase should continue executing
    int
    Get a bitmask telling which other tasks may not run concurrently.
    boolean
    Determine if this AI Task is interruptible by a higher (= lower value) priority task.
    void
    Resets the task
    void
    setMutexBits(int par1)
    Sets a bitmask telling which other tasks may not run concurrently.
    abstract boolean
    Returns whether the EntityAIBase should begin execution.
    void
    Execute a one shot task or start executing a continuous task
    void
    Updates the task

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.