    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005
    006    public class EntityLargeFireball extends EntityFireball
    007    {
    008        public EntityLargeFireball(World par1World)
    009        {
    010            super(par1World);
    011        }
    012
    013        @SideOnly(Side.CLIENT)
    014        public EntityLargeFireball(World par1World, double par2, double par4, double par6, double par8, double par10, double par12)
    015        {
    016            super(par1World, par2, par4, par6, par8, par10, par12);
    017        }
    018
    019        public EntityLargeFireball(World par1World, EntityLiving par2EntityLiving, double par3, double par5, double par7)
    020        {
    021            super(par1World, par2EntityLiving, par3, par5, par7);
    022        }
    023
    024        /**
    025         * Called when this EntityFireball hits a block or entity.
    026         */
    027        protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
    028        {
    029            if (!this.worldObj.isRemote)
    030            {
    031                if (par1MovingObjectPosition.entityHit != null)
    032                {
    033                    par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeFireballDamage(this, this.shootingEntity), 6);
    034                }
    035
    036                this.worldObj.newExplosion((Entity)null, this.posX, this.posY, this.posZ, 1.0F, true, this.worldObj.func_82736_K().func_82766_b("mobGriefing"));
    037                this.setDead();
    038            }
    039        }
    040    }