Class EntityWither

All Implemented Interfaces:
IAnimals, IBossDisplayData, IMob, IRangedAttackMob

public class EntityWither extends EntityMob implements IBossDisplayData, IRangedAttackMob
  • Constructor Details

    • EntityWither

      public EntityWither(World par1World)
  • Method Details

    • entityInit

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

      public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to write subclass entity data to NBT.
      Overrides:
      writeEntityToNBT in class EntityCreature
    • readEntityFromNBT

      public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to read subclass entity data from NBT.
      Overrides:
      readEntityFromNBT in class EntityCreature
    • getShadowSize

      public float getShadowSize()
      Overrides:
      getShadowSize in class Entity
    • 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
    • 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
    • updateAITasks

      protected void updateAITasks()
      Overrides:
      updateAITasks in class EntityLiving
    • func_82206_m

      public void func_82206_m()
    • setInWeb

      public void setInWeb()
      Sets the Entity inside a web block.
      Overrides:
      setInWeb in class Entity
    • attackEntityWithRangedAttack

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

      public boolean attackEntityFrom(DamageSource par1DamageSource, float par2)
      Called when the entity is attacked.
      Overrides:
      attackEntityFrom in class EntityMob
    • dropFewItems

      protected void dropFewItems(boolean par1, int par2)
      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
    • despawnEntity

      protected void despawnEntity()
      Makes the entity despawn if requirements are reached
      Overrides:
      despawnEntity in class EntityLiving
    • getBrightnessForRender

      public int getBrightnessForRender(float par1)
      Overrides:
      getBrightnessForRender in class Entity
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      Returns true if other Entities should be prevented from moving through this Entity.
      Overrides:
      canBeCollidedWith in class EntityLivingBase
    • fall

      protected void fall(float par1)
      Called when the mob is falling. Calculates and applies fall damage.
      Overrides:
      fall in class EntityLivingBase
    • addPotionEffect

      public void addPotionEffect(PotionEffect par1PotionEffect)
      adds a PotionEffect to the entity
      Overrides:
      addPotionEffect in class EntityLivingBase
    • isAIEnabled

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

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

      public float func_82207_a(int par1)
    • func_82210_r

      public float func_82210_r(int par1)
    • func_82212_n

      public int func_82212_n()
    • func_82215_s

      public void func_82215_s(int par1)
    • getWatchedTargetId

      public int getWatchedTargetId(int par1)
      Returns the target entity ID if present, or -1 if not @param par1 The target offset, should be from 0-2
    • func_82211_c

      public void func_82211_c(int par1, int par2)
    • isArmored

      public boolean isArmored()
      Returns whether the wither is armored with its boss armor or not by checking whether its health is below half of its maximum.
    • getCreatureAttribute

      public EnumCreatureAttribute getCreatureAttribute()
      Get this Entity's EnumCreatureAttribute
      Overrides:
      getCreatureAttribute in class EntityLivingBase
    • mountEntity

      public void mountEntity(Entity par1Entity)
      Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
      Overrides:
      mountEntity in class Entity
    • checkForScrollDrop

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

      protected void modSpecificOnLivingUpdate()
      Overrides:
      modSpecificOnLivingUpdate in class EntityCreature
    • summonWitherAtLocation

      public static void summonWitherAtLocation(World world, int i, int j, int k)