MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / explode

Method explode

src/main/java/gregapi/random/ExplosionGT.java:58–79  ·  view source on GitHub ↗
(World aWorld, Entity aEntity, double aX, double aY, double aZ, float aPower, boolean aFlaming, boolean aSmoking)

Source from the content-addressed store, hash-verified

56 */
57public 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);

Callers 4

updateEntityMethod · 0.95
explodeMethod · 0.95
onBlockExplodedMethod · 0.95
updateTickMethod · 0.95

Calls 7

doExplosionAMethod · 0.95
doExplosionBMethod · 0.95
func_77277_bMethod · 0.95
getMethod · 0.65
clearMethod · 0.45
iteratorMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected