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