content: package net.minecraft.entity.projectile;
  
  import net.minecraft.entity.Entity;
  import net.minecraft.entity.EntityLivingBase;
  import net.minecraft.nbt.NBTTagCompound;
  import net.minecraft.util.DamageSource;
  import net.minecraft.util.MovingObjectPosition;
  import net.minecraft.world.World;
  
  public class EntityLargeFireball extends EntityFireball {
      public int explosionPower = 1;
  
      public EntityLargeFireball(World worldIn) {
          super(worldIn);
      }
  
      public EntityLargeFireball(World worldIn, double x, double y, double z, double accelX, double accelY, double accelZ) {
          super(worldIn, x, y, z, accelX, accelY, accelZ);
      }
  
      public EntityLargeFireball(World worldIn, EntityLivingBase shooter, double accelX, double accelY, double accelZ) {
          super(worldIn, shooter, accelX, accelY, accelZ);
      }
  
      protected void onImpact(MovingObjectPosition movingObject) {
          if (!this.worldObj.isRemote) {
              if (movingObject.entityHit != null) {
                  movingObject.entityHit.attackEntityFrom(DamageSource.causeFireballDamage(this, this.shootingEntity), 6.0F);
                  this.applyEnchantments(this.shootingEntity, movingObject.entityHit);
              }
  
              boolean flag = this.worldObj.getGameRules().getBoolean("mobGriefing");
              this.worldObj.newExplosion(null, this.posX, this.posY, this.posZ, (float) this.explosionPower, flag, flag);
              this.setDead();
          }
      }
  
      public void writeEntityToNBT(NBTTagCompound tagCompound) {
          super.writeEntityToNBT(tagCompound);
          tagCompound.setInteger("ExplosionPower", this.explosionPower);
      }
  
      public void readEntityFromNBT(NBTTagCompound tagCompund) {
          super.readEntityFromNBT(tagCompund);
  
          if (tagCompund.hasKey("ExplosionPower", 99)) {
              this.explosionPower = tagCompund.getInteger("ExplosionPower");
          }
      }
  }
  