Class EntityIronGolem

All Implemented Interfaces:
IAnimals

public class EntityIronGolem extends EntityGolem
  • Constructor Details

    • EntityIronGolem

      public EntityIronGolem(World par1World)
  • Method Details

    • entityInit

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

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

      protected void updateAITick()
      main AI tick function, replaces updateEntityActionState
      Overrides:
      updateAITick in class EntityLivingBase
    • applyEntityAttributes

      protected void applyEntityAttributes()
      Overrides:
      applyEntityAttributes in class EntityLiving
    • decreaseAirSupply

      protected int decreaseAirSupply(int par1)
      Decrements the entity's air supply when underwater
      Overrides:
      decreaseAirSupply in class EntityLivingBase
    • collideWithEntity

      protected void collideWithEntity(Entity par1Entity)
      Overrides:
      collideWithEntity 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 EntityLiving
    • canAttackClass

      public boolean canAttackClass(Class par1Class)
      Returns true if this entity can attack entities of the specified class.
      Overrides:
      canAttackClass in class EntityLiving
    • 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
    • attackEntityAsMob

      public boolean attackEntityAsMob(Entity par1Entity)
      Overrides:
      attackEntityAsMob in class EntityLiving
    • handleHealthUpdate

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

      public Village getVillage()
    • getAttackTimer

      public int getAttackTimer()
    • setHoldingRose

      public void setHoldingRose(boolean par1)
    • getLivingSound

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

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

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

      protected void playStepSound(int par1, int par2, int par3, int par4)
      Plays step sound at given x, y, z for the entity
      Overrides:
      playStepSound in class Entity
    • 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
    • getHoldRoseTick

      public int getHoldRoseTick()
    • isPlayerCreated

      public boolean isPlayerCreated()
    • setPlayerCreated

      public void setPlayerCreated(boolean par1)
    • onDeath

      public void onDeath(DamageSource par1DamageSource)
      Called when the mob's health reaches 0.
      Overrides:
      onDeath in class EntityCreature