Class DireWolfEntity

All Implemented Interfaces:
IAnimals

public class DireWolfEntity extends EntityCreature implements IAnimals
  • Field Details

    • howlingCountdown

      public int howlingCountdown
    • heardHowlCountdown

      public int heardHowlCountdown
  • Constructor Details

    • DireWolfEntity

      public DireWolfEntity(World world)
  • Method Details

    • isAIEnabled

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

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

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

      protected void playStepSound(int par1, int par2, int par3, int par4)
      Description copied from class: Entity
      Plays step sound at given x, y, z for the entity
      Overrides:
      playStepSound in class Entity
    • writeEntityToNBT

      public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
      Description copied from class: EntityLiving
      // +++START EDIT+++ // ---END EDIT--- (abstract) Protected helper method to write subclass entity data to NBT.
      Overrides:
      writeEntityToNBT in class EntityCreature
    • readEntityFromNBT

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

      protected boolean canDespawn()
      Description copied from class: EntityLiving
      Determines if an entity can be despawned, used on idle far away entities
      Overrides:
      canDespawn in class EntityLiving
    • getLivingSound

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

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

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

      protected float getSoundVolume()
      Description copied from class: EntityLivingBase
      Returns the volume for the sounds this mob makes.
      Overrides:
      getSoundVolume in class EntityLivingBase
    • getSoundPitch

      protected float getSoundPitch()
      Description copied from class: EntityLivingBase
      Gets the pitch of living sounds in living entities.
      Overrides:
      getSoundPitch in class EntityLivingBase
    • getDropItemId

      protected int getDropItemId()
      Description copied from class: EntityLiving
      Returns the item ID for the item the mob drops on death.
      Overrides:
      getDropItemId in class EntityLiving
    • dropFewItems

      protected void dropFewItems(boolean bKilledByPlayer, int iLootingLevel)
      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
    • onLivingUpdate

      public void onLivingUpdate()
      Description copied from class: EntityLiving
      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
    • onUpdate

      public void onUpdate()
      Description copied from class: EntityLiving
      Called to update the entity's position/logic.
      Overrides:
      onUpdate in class EntityLiving
    • knockBack

      public void knockBack(Entity entity, float damageDone, double dMotionX, double dMotionY)
      Description copied from class: EntityLivingBase
      knocks back this entity
      Overrides:
      knockBack in class EntityLivingBase
    • getEyeHeight

      public float getEyeHeight()
      Overrides:
      getEyeHeight in class EntityLivingBase
    • getMeleeAttackStrength

      public int getMeleeAttackStrength(Entity target)
      Overrides:
      getMeleeAttackStrength in class EntityLivingBase
    • getBlockPathWeight

      public float getBlockPathWeight(int par1, int par2, int par3)
      Description copied from class: EntityCreature
      Takes a coordinate in and returns a weight to determine how likely this creature will try to path to the block. Args: x, y, z
      Overrides:
      getBlockPathWeight in class EntityCreature
    • getCreatureAttribute

      public EnumCreatureAttribute getCreatureAttribute()
      Description copied from class: EntityLivingBase
      Get this Entity's EnumCreatureAttribute
      Overrides:
      getCreatureAttribute in class EntityLivingBase
    • getEntityName

      public String getEntityName()
      Description copied from class: EntityLiving
      Gets the username of the entity.
      Overrides:
      getEntityName in class EntityLiving
    • getTailRotation

      public float getTailRotation()
    • getHeadRotationPointOffset

      public float getHeadRotationPointOffset(float par1)
    • getHeadRotation

      public float getHeadRotation(float par1)
    • handleHealthUpdate

      @Environment(CLIENT) public void handleHealthUpdate(byte bUpdateType)
      Overrides:
      handleHealthUpdate in class EntityLivingBase