public boolean func_76484_a( World p_76484_1_, Random p_76484_2_, int p_76484_3_, int p_76484_4_, int p_76484_5_) { for (int var6 = 0; var6 < 10; ++var6) { int var7 = p_76484_3_ + p_76484_2_.nextInt(8) - p_76484_2_.nextInt(8); int var8 = p_76484_4_ + p_76484_2_.nextInt(4) - p_76484_2_.nextInt(4); int var9 = p_76484_5_ + p_76484_2_.nextInt(8) - p_76484_2_.nextInt(8); if (p_76484_1_.func_72799_c(var7, var8, var9) && Block.field_71991_bz.func_71930_b(p_76484_1_, var7, var8, var9)) { p_76484_1_.func_72822_b(var7, var8, var9, Block.field_71991_bz.field_71990_ca); } } return true; }
public void func_72269_c( World p_72269_1_, int p_72269_2_, int p_72269_3_, int p_72269_4_, Random p_72269_5_) { int var6 = p_72269_1_.func_72805_g(p_72269_2_, p_72269_3_, p_72269_4_) & 3; Object var7 = null; int var8 = 0; int var9 = 0; boolean var10 = false; if (var6 == 1) { var7 = new WorldGenTaiga2(true); } else if (var6 == 2) { var7 = new WorldGenForest(true); } else if (var6 == 3) { for (var8 = 0; var8 >= -1; --var8) { for (var9 = 0; var9 >= -1; --var9) { if (this.func_72268_e(p_72269_1_, p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9, 3) && this.func_72268_e( p_72269_1_, p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9, 3) && this.func_72268_e( p_72269_1_, p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9 + 1, 3) && this.func_72268_e( p_72269_1_, p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9 + 1, 3)) { var7 = new WorldGenHugeTrees(true, 10 + p_72269_5_.nextInt(20), 3, 3); var10 = true; break; } } if (var7 != null) { break; } } if (var7 == null) { var9 = 0; var8 = 0; var7 = new WorldGenTrees(true, 4 + p_72269_5_.nextInt(7), 3, 3, false); } } else { var7 = new WorldGenTrees(true); if (p_72269_5_.nextInt(10) == 0) { var7 = new WorldGenBigTree(true); } } if (var10) { p_72269_1_.func_72822_b(p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9, 0); p_72269_1_.func_72822_b(p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9, 0); p_72269_1_.func_72822_b(p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9 + 1, 0); p_72269_1_.func_72822_b(p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9 + 1, 0); } else { p_72269_1_.func_72822_b(p_72269_2_, p_72269_3_, p_72269_4_, 0); } if (!((WorldGenerator) var7) .func_76484_a(p_72269_1_, p_72269_5_, p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9)) { if (var10) { p_72269_1_.func_72961_c( p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9, this.field_71990_ca, var6); p_72269_1_.func_72961_c( p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9, this.field_71990_ca, var6); p_72269_1_.func_72961_c( p_72269_2_ + var8, p_72269_3_, p_72269_4_ + var9 + 1, this.field_71990_ca, var6); p_72269_1_.func_72961_c( p_72269_2_ + var8 + 1, p_72269_3_, p_72269_4_ + var9 + 1, this.field_71990_ca, var6); } else { p_72269_1_.func_72961_c(p_72269_2_, p_72269_3_, p_72269_4_, this.field_71990_ca, var6); } } }