(World aWorld, Entity aEntity, double aX, double aY, double aZ, float aPower, boolean aFlaming, boolean aSmoking)
| 56 | */ |
| 57 | public class ExplosionGT extends Explosion { |
| 58 | public static ExplosionGT explode(World aWorld, Entity aEntity, double aX, double aY, double aZ, float aPower, boolean aFlaming, boolean aSmoking) { |
| 59 | ExplosionGT tExplosion = new ExplosionGT(aWorld, aEntity, aX, aY, aZ, aPower); |
| 60 | tExplosion.isFlaming = aFlaming; |
| 61 | tExplosion.isSmoking = aSmoking; |
| 62 | if (net.minecraftforge.event.ForgeEventFactory.onExplosionStart(aWorld, tExplosion)) return tExplosion; |
| 63 | tExplosion.doExplosionA(); |
| 64 | if (aWorld instanceof WorldServer) { |
| 65 | tExplosion.doExplosionB(F); |
| 66 | if (!aSmoking) tExplosion.affectedBlockPositions.clear(); |
| 67 | @SuppressWarnings("rawtypes") |
| 68 | Iterator tIterator = aWorld.playerEntities.iterator(); |
| 69 | while (tIterator.hasNext()) { |
| 70 | EntityPlayer tPlayer = (EntityPlayer)tIterator.next(); |
| 71 | if (tPlayer.getDistanceSq(aX, aY, aZ) < 4096) { |
| 72 | ((EntityPlayerMP)tPlayer).playerNetServerHandler.sendPacket(new S27PacketExplosion(aX, aY, aZ, aPower, tExplosion.affectedBlockPositions, (Vec3)tExplosion.func_77277_b().get(tPlayer))); |
| 73 | } |
| 74 | } |
| 75 | } else { |
| 76 | tExplosion.doExplosionB(T); |
| 77 | } |
| 78 | return tExplosion; |
| 79 | } |
| 80 | |
| 81 | public ExplosionGT(World aWorld, Entity aEntity, double aX, double aY, double aZ, float aPower) { |
| 82 | super(aWorld, aEntity, aX, aY, aZ, aPower); |
no test coverage detected