Class EntityAIAttackOnCollide

java.lang.Object
net.minecraft.src.EntityAIBase
net.minecraft.src.EntityAIAttackOnCollide
Direct Known Subclasses:
ZombieSecondaryAttackBehavior

public class EntityAIAttackOnCollide extends EntityAIBase
  • Field Details

    • worldObj

      public World worldObj
    • attacker

      public EntityCreature attacker
    • attackTick

      public int attackTick
      An amount of decrementing ticks that allows the entity to attack once the tick reaches 0.
    • longMemory

      public boolean longMemory
      When true, the mob will continue chasing its target, even if it can't find a path to them right now.
    • field_75440_e

      public double field_75440_e
    • entityPathEntity

      public PathEntity entityPathEntity
      The PathEntity of our entity.
    • classTarget

      public Class classTarget
  • Constructor Details

    • EntityAIAttackOnCollide

      public EntityAIAttackOnCollide(EntityCreature par1EntityCreature, Class par2Class, double par3, boolean par5)
    • EntityAIAttackOnCollide

      public EntityAIAttackOnCollide(EntityCreature par1EntityCreature, double par2, boolean par4)
  • Method Details

    • shouldExecute

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

      public boolean continueExecuting()
      Returns whether an in-progress EntityAIBase should continue executing
      Overrides:
      continueExecuting in class EntityAIBase
    • 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
    • updateTask

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