Class EntityWitherSkull


public class EntityWitherSkull extends EntityFireball
  • Constructor Details

    • EntityWitherSkull

      public EntityWitherSkull(World par1World)
    • EntityWitherSkull

      public EntityWitherSkull(World par1World, EntityLivingBase par2EntityLivingBase, double par3, double par5, double par7)
    • EntityWitherSkull

      public EntityWitherSkull(World par1World, double par2, double par4, double par6, double par8, double par10, double par12)
  • Method Details

    • getMotionFactor

      protected float getMotionFactor()
      Return the motion factor for this projectile. The factor is multiplied by the original motion.
      Overrides:
      getMotionFactor in class EntityFireball
    • 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
    • canBeCollidedWith

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

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

      protected void entityInit()
      Overrides:
      entityInit in class EntityFireball
    • isInvulnerable

      public boolean isInvulnerable()
      Return whether this skull comes from an invulnerable (aura) wither boss.
    • setInvulnerable

      public void setInvulnerable(boolean par1)
      Set whether this skull comes from an invulnerable (aura) wither boss.
    • getBlockExplosionResistance

      public float getBlockExplosionResistance(Explosion explosion, World par2World, int par3, int par4, int par5, Block par6Block)
      Description copied from class: Entity
      Gets a block's resistance to this entity's explosion. Used to make rails immune to TNT minecarts' explosions and Wither skulls more destructive.
      Overrides:
      getBlockExplosionResistance in class Entity
    • onImpact

      protected void onImpact(MovingObjectPosition pos)
      Description copied from class: EntityFireball
      Called when this EntityFireball hits a block or entity.
      Specified by:
      onImpact in class EntityFireball
    • writeEntityToNBT

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

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

      protected boolean isHighExplosive()
    • spreadBlightInArea

      protected void spreadBlightInArea()
    • attemptSpreadBlightToBlock

      protected void attemptSpreadBlightToBlock(int i, int j, int k)