public void func_226_a(World p_226_1_, int p_226_2_, int p_226_3_, int p_226_4_, int p_226_5_) { super.func_226_a(p_226_1_, p_226_2_, p_226_3_, p_226_4_, p_226_5_); Material material = p_226_1_.func_599_f(p_226_2_, p_226_3_ + 1, p_226_4_); if (material.func_878_a()) { p_226_1_.func_690_d(p_226_2_, p_226_3_, p_226_4_, Block.field_336_w.field_376_bc); } }
public void func_208_a(World world, int i, int j, int k, Random random) { if (world.field_1026_y) { return; } if (world.func_618_j(i, j + 1, k) < 4 && Block.field_341_r[world.func_600_a(i, j + 1, k)] > 2) { world.func_690_d(i, j, k, Block.field_336_w.field_376_bc); } else if (world.func_618_j(i, j + 1, k) >= 9) { for (int l = 0; l < 4; l++) { int i1 = (i + random.nextInt(3)) - 1; int j1 = (j + random.nextInt(5)) - 3; int k1 = (k + random.nextInt(3)) - 1; int l1 = world.func_600_a(i1, j1 + 1, k1); if (world.func_600_a(i1, j1, k1) == Block.field_336_w.field_376_bc && world.func_618_j(i1, j1 + 1, k1) >= 4 && Block.field_341_r[l1] <= 2) { world.func_690_d(i1, j1, k1, field_376_bc); } } } }
public void func_235_e(World world, int i, int j, int k) { if (field_41051_a) { return; } if (world.field_4209_q.field_4218_e != 0) { world.func_690_d(i, j, k, 0); return; } else { return; } }
public void func_43001_a( World p_43001_1_, int p_43001_2_, int p_43001_3_, int p_43001_4_, Entity p_43001_5_, float p_43001_6_) { if (p_43001_1_.field_1037_n.nextFloat() < p_43001_6_ - 0.5F) { p_43001_1_.func_690_d(p_43001_2_, p_43001_3_, p_43001_4_, Block.field_336_w.field_376_bc); } }
public void func_208_a( World p_208_1_, int p_208_2_, int p_208_3_, int p_208_4_, Random p_208_5_) { if (func_274_i(p_208_1_, p_208_2_, p_208_3_, p_208_4_) || p_208_1_.func_27167_r(p_208_2_, p_208_3_ + 1, p_208_4_)) { p_208_1_.func_691_b(p_208_2_, p_208_3_, p_208_4_, 7); } else { int i = p_208_1_.func_602_e(p_208_2_, p_208_3_, p_208_4_); if (i > 0) { p_208_1_.func_691_b(p_208_2_, p_208_3_, p_208_4_, i - 1); } else if (!func_275_h(p_208_1_, p_208_2_, p_208_3_, p_208_4_)) { p_208_1_.func_690_d(p_208_2_, p_208_3_, p_208_4_, Block.field_336_w.field_376_bc); } } }
public boolean func_35023_a( World p_35023_1_, Random p_35023_2_, StructureBoundingBox p_35023_3_) { if (func_35013_a(p_35023_1_, p_35023_3_)) { return false; } int i = field_35067_d * 5 - 1; func_35011_a(p_35023_1_, p_35023_3_, 0, 0, 0, 2, 1, i, 0, 0, false); func_35010_a(p_35023_1_, p_35023_3_, p_35023_2_, 0.8F, 0, 2, 0, 2, 2, i, 0, 0, false); if (field_35068_b) { func_35010_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.6F, 0, 0, 0, 2, 1, i, Block.field_9258_W.field_376_bc, 0, false); } for (int j = 0; j < field_35067_d; j++) { int i1 = 2 + j * 5; func_35011_a( p_35023_1_, p_35023_3_, 0, 0, i1, 0, 1, i1, Block.field_4057_ba.field_376_bc, 0, false); func_35011_a( p_35023_1_, p_35023_3_, 2, 0, i1, 2, 1, i1, Block.field_4057_ba.field_376_bc, 0, false); if (p_35023_2_.nextInt(4) != 0) { func_35011_a( p_35023_1_, p_35023_3_, 0, 2, i1, 2, 2, i1, Block.field_334_y.field_376_bc, 0, false); } else { func_35011_a( p_35023_1_, p_35023_3_, 0, 2, i1, 0, 2, i1, Block.field_334_y.field_376_bc, 0, false); func_35011_a( p_35023_1_, p_35023_3_, 2, 2, i1, 2, 2, i1, Block.field_334_y.field_376_bc, 0, false); } func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.1F, 0, 2, i1 - 1, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.1F, 2, 2, i1 - 1, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.1F, 0, 2, i1 + 1, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.1F, 2, 2, i1 + 1, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 0, 2, i1 - 2, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 2, 2, i1 - 2, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 0, 2, i1 + 2, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 2, 2, i1 + 2, Block.field_9258_W.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 1, 2, i1 - 1, Block.field_404_ar.field_376_bc, 0); func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.05F, 1, 2, i1 + 1, Block.field_404_ar.field_376_bc, 0); if (p_35023_2_.nextInt(100) == 0) { func_35003_a( p_35023_1_, p_35023_3_, p_35023_2_, 2, 0, i1 - 1, StructureMineshaftPieces.func_35588_a(), 3 + p_35023_2_.nextInt(4)); } if (p_35023_2_.nextInt(100) == 0) { func_35003_a( p_35023_1_, p_35023_3_, p_35023_2_, 0, 0, i1 + 1, StructureMineshaftPieces.func_35588_a(), 3 + p_35023_2_.nextInt(4)); } if (!field_35068_b || field_35069_c) { continue; } int l1 = func_35008_a(0); int j2 = (i1 - 1) + p_35023_2_.nextInt(3); int k2 = func_35017_a(1, j2); j2 = func_35006_b(1, j2); if (!p_35023_3_.func_35742_b(k2, l1, j2)) { continue; } field_35069_c = true; p_35023_1_.func_690_d(k2, l1, j2, Block.field_400_at.field_376_bc); TileEntityMobSpawner tileentitymobspawner = (TileEntityMobSpawner) p_35023_1_.func_603_b(k2, l1, j2); if (tileentitymobspawner != null) { tileentitymobspawner.func_21098_a("CaveSpider"); } } for (int k = 0; k <= 2; k++) { for (int j1 = 0; j1 <= i; j1++) { int i2 = func_35007_a(p_35023_1_, k, -1, j1, p_35023_3_); if (i2 == 0) { func_35018_a(p_35023_1_, Block.field_334_y.field_376_bc, 0, k, -1, j1, p_35023_3_); } } } if (field_35070_a) { for (int l = 0; l <= i; l++) { int k1 = func_35007_a(p_35023_1_, 1, -1, l, p_35023_3_); if (k1 > 0 && Block.field_343_p[k1]) { func_35014_a( p_35023_1_, p_35023_3_, p_35023_2_, 0.7F, 1, 0, l, Block.field_440_aH.field_376_bc, func_35009_c(Block.field_440_aH.field_376_bc, 0)); } } } return true; }