Class EntityAIControlledByPlayer

java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAIControlledByPlayer

public class EntityAIControlledByPlayer extends EntityAIBase
  • Constructor Details

    • EntityAIControlledByPlayer

      public EntityAIControlledByPlayer(EntityLiving par1EntityLiving, float par2)
  • Method Details

    • startExecuting

      public void startExecuting()
      Execute a one shot task or start executing a continuous task
      Overrides:
      startExecuting in class EntityAIBase
    • resetTask

      public void resetTask()
      Resets the task
      Overrides:
      resetTask in class EntityAIBase
    • shouldExecute

      public boolean shouldExecute()
      Returns whether the EntityAIBase should begin execution.
      Specified by:
      shouldExecute in class EntityAIBase
    • updateTask

      public void updateTask()
      Updates the task
      Overrides:
      updateTask in class EntityAIBase
    • isSpeedBoosted

      public boolean isSpeedBoosted()
      Return whether the entity's speed is boosted.
    • boostSpeed

      public void boostSpeed()
      Boost the entity's movement speed.
    • isControlledByPlayer

      public boolean isControlledByPlayer()
      Return whether the entity is being controlled by a player.