Class EntityMagmaCube

All Implemented Interfaces:
IAnimals, IMob

public class EntityMagmaCube extends EntitySlime
  • Constructor Details

    • EntityMagmaCube

      public EntityMagmaCube(World par1World)
  • Method Details

    • applyEntityAttributes

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

      public boolean getCanSpawnHere()
      Checks if the entity's current position is a valid location to spawn this entity.
      Overrides:
      getCanSpawnHere in class EntitySlime
    • getBrightnessForRender

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

      public float getBrightness(float par1)
      Gets how bright this entity is.
      Overrides:
      getBrightness in class Entity
    • getSlimeParticle

      protected String getSlimeParticle()
      Returns the name of a particle effect that may be randomly created by EntitySlime.onUpdate()
      Overrides:
      getSlimeParticle in class EntitySlime
    • createInstance

      protected EntitySlime createInstance()
      Overrides:
      createInstance in class EntitySlime
    • getDropItemId

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

      public boolean isBurning()
      Returns true if the entity is on fire. Used by render to add the fire effect on rendering.
      Overrides:
      isBurning in class Entity
    • getJumpDelay

      protected int getJumpDelay()
      Gets the amount of time the slime needs to wait between jumps.
      Overrides:
      getJumpDelay in class EntitySlime
    • alterSquishAmount

      protected void alterSquishAmount()
      Overrides:
      alterSquishAmount in class EntitySlime
    • jump

      public void jump()
      Causes this entity to do an upwards motion (jumping).
      Overrides:
      jump in class EntitySlime
    • fall

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

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

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

      protected String getJumpSound()
      Returns the name of the sound played when the slime jumps.
      Overrides:
      getJumpSound in class EntitySlime
    • handleLavaMovement

      public boolean handleLavaMovement()
      Whether or not the current entity is in lava
      Overrides:
      handleLavaMovement in class Entity
    • makesSoundOnLand

      protected boolean makesSoundOnLand()
      Returns true if the slime makes a sound when it lands after a jump (based upon the slime's size)
      Overrides:
      makesSoundOnLand in class EntitySlime
    • canDamagePlayer

      protected boolean canDamagePlayer()
      Overrides:
      canDamagePlayer in class EntitySlime
    • checkForScrollDrop

      public void checkForScrollDrop()
      Overrides:
      checkForScrollDrop in class EntitySlime
    • setSlimeSize

      protected void setSlimeSize(int iSize)
      Overrides:
      setSlimeSize in class EntitySlime