Class EntityWitch

All Implemented Interfaces:
IAnimals, IMob, IRangedAttackMob

public class EntityWitch extends EntityMob implements IRangedAttackMob
  • Constructor Details

    • EntityWitch

      public EntityWitch(World par1World)
  • Method Details

    • entityInit

      protected void entityInit()
      Overrides:
      entityInit in class EntityCreature
    • getLivingSound

      protected String getLivingSound()
      Returns the sound this mob makes while it's alive.
      Overrides:
      getLivingSound in class EntityLiving
    • getHurtSound

      protected String getHurtSound()
      Returns the sound this mob makes when it is hurt.
      Overrides:
      getHurtSound in class EntityLivingBase
    • getDeathSound

      protected String getDeathSound()
      Returns the sound this mob makes on death.
      Overrides:
      getDeathSound in class EntityLivingBase
    • setAggressive

      public void setAggressive(boolean par1)
      Set whether this witch is aggressive at an entity.
    • getAggressive

      public boolean getAggressive()
      Return whether this witch is aggressive at an entity.
    • applyEntityAttributes

      protected void applyEntityAttributes()
      Overrides:
      applyEntityAttributes in class EntityMob
    • isAIEnabled

      public boolean isAIEnabled()
      Returns true if the newer Entity AI code should be run
      Overrides:
      isAIEnabled in class EntityLiving
    • onLivingUpdate

      public void onLivingUpdate()
      Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.
      Overrides:
      onLivingUpdate in class EntityMob
    • handleHealthUpdate

      public void handleHealthUpdate(byte par1)
      Overrides:
      handleHealthUpdate in class EntityLivingBase
    • applyPotionDamageCalculations

      protected float applyPotionDamageCalculations(DamageSource par1DamageSource, float par2)
      Reduces damage, depending on potions
      Overrides:
      applyPotionDamageCalculations in class EntityLivingBase
    • attackEntityWithRangedAttack

      public void attackEntityWithRangedAttack(EntityLivingBase par1EntityLivingBase, float par2)
      Attack the specified entity using a ranged attack.
      Specified by:
      attackEntityWithRangedAttack in interface IRangedAttackMob
    • dropFewItems

      protected void dropFewItems(boolean bKilledByPlayer, int iLootingModifier)
      Description copied from class: EntityLiving
      Drop 0-2 items of this living's type. @param par1 - Whether this entity has recently been hit by a player. @param par2 - Level of Looting used to kill this mob.
      Overrides:
      dropFewItems in class EntityLiving
    • getCanSpawnHere

      public boolean getCanSpawnHere()
      Description copied from class: EntityMob
      Checks if the entity's current position is a valid location to spawn this entity.
      Overrides:
      getCanSpawnHere in class EntityMob
    • checkForScrollDrop

      public void checkForScrollDrop()
      Overrides:
      checkForScrollDrop in class EntityLivingBase
    • isConsumingPotion

      public boolean isConsumingPotion()
      getAgressive() is misnamed in the parent. This function for clarity