Class EntityEnderman

All Implemented Interfaces:
IAnimals, IMob

public class EntityEnderman extends EntityMob
  • Constructor Details

    • EntityEnderman

      public EntityEnderman(World par1World)
  • Method Details

    • applyEntityAttributes

      protected void applyEntityAttributes()
      Overrides:
      applyEntityAttributes in class EntityMob
    • 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
    • teleportRandomly

      protected boolean teleportRandomly()
      Teleport the enderman to a random nearby position
    • teleportToEntity

      protected boolean teleportToEntity(Entity par1Entity)
      Teleport the enderman to another entity
    • teleportTo

      protected boolean teleportTo(double par1, double par3, double par5)
      Teleport the enderman
    • 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
    • getDropItemId

      protected int getDropItemId()
      Returns the item ID for the item the mob drops on death.
      Overrides:
      getDropItemId in class EntityLiving
    • 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
    • setCarried

      public void setCarried(int par1)
      Set the id of the block an enderman carries
    • getCarried

      public int getCarried()
      Get the id of the block an enderman carries
    • setCarryingData

      public void setCarryingData(int par1)
      Set the metadata of the block an enderman carries
    • getCarryingData

      public int getCarryingData()
      Get the metadata of the block an enderman carries
    • isScreaming

      public boolean isScreaming()
    • setScreaming

      public void setScreaming(boolean par1)
    • findPlayerToAttack

      protected Entity findPlayerToAttack()
      Description copied from class: EntityMob
      Finds the closest player within 16 blocks to attack, or null if this Entity isn't interested in attacking (Animals, Spiders at day, peaceful PigZombies).
      Overrides:
      findPlayerToAttack in class EntityMob
    • onLivingUpdate

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

      public boolean attackEntityFrom(DamageSource source, float damage)
      Description copied from class: EntityMob
      Called when the entity is attacked.
      Overrides:
      attackEntityFrom in class EntityMob
    • onSpawnWithEgg

      public EntityLivingData onSpawnWithEgg(EntityLivingData data)
      Overrides:
      onSpawnWithEgg in class EntityLiving
    • checkForScrollDrop

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

      protected boolean isPlayerStaringAtMe(EntityPlayer player)
    • dropCarriedBlock

      public void dropCarriedBlock()
    • angerNearbyEndermen

      protected void angerNearbyEndermen(EntityPlayer targetPlayer)
    • emitParticles

      protected void emitParticles()
    • panic

      protected void panic()
    • teleportTo

      protected static boolean teleportTo(EntityEnderman enderman, EntityLivingBase entity)
      Teleport the enderman