private void func_72236_l(World p_72236_1_, int p_72236_2_, int p_72236_3_, int p_72236_4_) { if (BlockSand.func_72191_e_(p_72236_1_, p_72236_2_, p_72236_3_ - 1, p_72236_4_) && p_72236_3_ >= 0) { byte byte0 = 32; if (BlockSand.field_72192_a || !p_72236_1_.func_72904_c( p_72236_2_ - byte0, p_72236_3_ - byte0, p_72236_4_ - byte0, p_72236_2_ + byte0, p_72236_3_ + byte0, p_72236_4_ + byte0)) { p_72236_1_.func_72859_e(p_72236_2_, p_72236_3_, p_72236_4_, 0); for (; BlockSand.func_72191_e_(p_72236_1_, p_72236_2_, p_72236_3_ - 1, p_72236_4_) && p_72236_3_ > 0; p_72236_3_--) {} if (p_72236_3_ > 0) { p_72236_1_.func_72859_e(p_72236_2_, p_72236_3_, p_72236_4_, field_71990_ca); } } else { EntityFallingSand entityfallingsand = new EntityFallingSand( p_72236_1_, (float) p_72236_2_ + 0.5F, (float) p_72236_3_ + 0.5F, (float) p_72236_4_ + 0.5F, field_71990_ca); p_72236_1_.func_72838_d(entityfallingsand); } } }
public void func_71861_g(World p_71861_1_, int p_71861_2_, int p_71861_3_, int p_71861_4_) { if (field_72275_a) { return; } if (p_71861_1_.field_73011_w.field_76574_g != 0) { p_71861_1_.func_72859_e(p_71861_2_, p_71861_3_, p_71861_4_, 0); } }
public void func_75246_d() { field_75365_a = Math.max(0, field_75365_a - 1); if (field_75365_a != 4) { return; } int i = MathHelper.func_76128_c(field_75363_b.field_70165_t); int j = MathHelper.func_76128_c(field_75363_b.field_70163_u); int k = MathHelper.func_76128_c(field_75363_b.field_70161_v); if (field_75364_c.func_72798_a(i, j, k) == Block.field_71962_X.field_71990_ca) { field_75364_c.func_72926_e(2001, i, j, k, Block.field_71962_X.field_71990_ca + 4096); field_75364_c.func_72859_e(i, j, k, 0); field_75363_b.func_70615_aA(); } else if (field_75364_c.func_72798_a(i, j - 1, k) == Block.field_71980_u.field_71990_ca) { field_75364_c.func_72926_e(2001, i, j - 1, k, Block.field_71980_u.field_71990_ca); field_75364_c.func_72859_e(i, j - 1, k, Block.field_71979_v.field_71990_ca); field_75363_b.func_70615_aA(); } }
public void func_71847_b( World p_71847_1_, int p_71847_2_, int p_71847_3_, int p_71847_4_, Random p_71847_5_) { if (!p_71847_1_.field_72995_K && field_72166_a && !p_71847_1_.func_72864_z(p_71847_2_, p_71847_3_, p_71847_4_)) { p_71847_1_.func_72859_e( p_71847_2_, p_71847_3_, p_71847_4_, Block.field_72078_bL.field_71990_ca); } }
public void func_71861_g(World p_71861_1_, int p_71861_2_, int p_71861_3_, int p_71861_4_) { if (!p_71861_1_.field_72995_K) { if (field_72166_a && !p_71861_1_.func_72864_z(p_71861_2_, p_71861_3_, p_71861_4_)) { p_71861_1_.func_72836_a(p_71861_2_, p_71861_3_, p_71861_4_, field_71990_ca, 4); } else if (!field_72166_a && p_71861_1_.func_72864_z(p_71861_2_, p_71861_3_, p_71861_4_)) { p_71861_1_.func_72859_e( p_71861_2_, p_71861_3_, p_71861_4_, Block.field_72080_bM.field_71990_ca); } } }
private void func_72237_n(World p_72237_1_, int p_72237_2_, int p_72237_3_, int p_72237_4_) { if (p_72237_1_.func_72798_a(p_72237_2_, p_72237_3_, p_72237_4_) != field_71990_ca) { return; } if (p_72237_1_.field_72995_K) { return; } for (int i = 0; i < 1000; i++) { int j = (p_72237_2_ + p_72237_1_.field_73012_v.nextInt(16)) - p_72237_1_.field_73012_v.nextInt(16); int k = (p_72237_3_ + p_72237_1_.field_73012_v.nextInt(8)) - p_72237_1_.field_73012_v.nextInt(8); int l = (p_72237_4_ + p_72237_1_.field_73012_v.nextInt(16)) - p_72237_1_.field_73012_v.nextInt(16); if (p_72237_1_.func_72798_a(j, k, l) == 0) { p_72237_1_.func_72832_d( j, k, l, field_71990_ca, p_72237_1_.func_72805_g(p_72237_2_, p_72237_3_, p_72237_4_)); p_72237_1_.func_72859_e(p_72237_2_, p_72237_3_, p_72237_4_, 0); char c = '\200'; for (int i1 = 0; i1 < c; i1++) { double d = p_72237_1_.field_73012_v.nextDouble(); float f = (p_72237_1_.field_73012_v.nextFloat() - 0.5F) * 0.2F; float f1 = (p_72237_1_.field_73012_v.nextFloat() - 0.5F) * 0.2F; float f2 = (p_72237_1_.field_73012_v.nextFloat() - 0.5F) * 0.2F; double d1 = (double) j + (double) (p_72237_2_ - j) * d + (p_72237_1_.field_73012_v.nextDouble() - 0.5D) * 1.0D + 0.5D; double d2 = ((double) k + (double) (p_72237_3_ - k) * d + p_72237_1_.field_73012_v.nextDouble() * 1.0D) - 0.5D; double d3 = (double) l + (double) (p_72237_4_ - l) * d + (p_72237_1_.field_73012_v.nextDouble() - 0.5D) * 1.0D + 0.5D; p_72237_1_.func_72869_a("portal", d1, d2, d3, f, f1, f2); } return; } } }
public void func_77279_a(boolean p_77279_1_) { field_77287_j.func_72908_a( field_77284_b, field_77285_c, field_77282_d, "random.explode", 4F, (1.0F + (field_77287_j.field_73012_v.nextFloat() - field_77287_j.field_73012_v.nextFloat()) * 0.2F) * 0.7F); field_77287_j.func_72869_a( "hugeexplosion", field_77284_b, field_77285_c, field_77282_d, 0.0D, 0.0D, 0.0D); Iterator iterator = field_77281_g.iterator(); do { if (!iterator.hasNext()) { break; } ChunkPosition chunkposition = (ChunkPosition) iterator.next(); int i = chunkposition.field_76930_a; int k = chunkposition.field_76928_b; int i1 = chunkposition.field_76929_c; int k1 = field_77287_j.func_72798_a(i, k, i1); if (p_77279_1_) { double d = (float) i + field_77287_j.field_73012_v.nextFloat(); double d1 = (float) k + field_77287_j.field_73012_v.nextFloat(); double d2 = (float) i1 + field_77287_j.field_73012_v.nextFloat(); double d3 = d - field_77284_b; double d4 = d1 - field_77285_c; double d5 = d2 - field_77282_d; double d6 = MathHelper.func_76133_a(d3 * d3 + d4 * d4 + d5 * d5); d3 /= d6; d4 /= d6; d5 /= d6; double d7 = 0.5D / (d6 / (double) field_77280_f + 0.10000000000000001D); d7 *= field_77287_j.field_73012_v.nextFloat() * field_77287_j.field_73012_v.nextFloat() + 0.3F; d3 *= d7; d4 *= d7; d5 *= d7; field_77287_j.func_72869_a( "explode", (d + field_77284_b * 1.0D) / 2D, (d1 + field_77285_c * 1.0D) / 2D, (d2 + field_77282_d * 1.0D) / 2D, d3, d4, d5); field_77287_j.func_72869_a("smoke", d, d1, d2, d3, d4, d5); } if (k1 > 0) { Block.field_71973_m[k1].func_71914_a( field_77287_j, i, k, i1, field_77287_j.func_72805_g(i, k, i1), 0.3F, 0); if (field_77287_j.func_72930_a(i, k, i1, 0, 0, field_77287_j.field_72995_K)) { field_77287_j.func_72898_h(i, k, i1, 0); } Block.field_71973_m[k1].func_71867_k(field_77287_j, i, k, i1); } } while (true); if (field_77286_a) { Iterator iterator1 = field_77281_g.iterator(); do { if (!iterator1.hasNext()) { break; } ChunkPosition chunkposition1 = (ChunkPosition) iterator1.next(); int j = chunkposition1.field_76930_a; int l = chunkposition1.field_76928_b; int j1 = chunkposition1.field_76929_c; int l1 = field_77287_j.func_72798_a(j, l, j1); int i2 = field_77287_j.func_72798_a(j, l - 1, j1); if (l1 == 0 && Block.field_71970_n[i2] && field_77290_i.nextInt(3) == 0) { field_77287_j.func_72859_e(j, l, j1, Block.field_72067_ar.field_71990_ca); } } while (true); } }