當前位置: 首頁>>代碼示例>>Java>>正文


Java BlockSand.field_72192_a方法代碼示例

本文整理匯總了Java中net.minecraft.block.BlockSand.field_72192_a方法的典型用法代碼示例。如果您正苦於以下問題:Java BlockSand.field_72192_a方法的具體用法?Java BlockSand.field_72192_a怎麽用?Java BlockSand.field_72192_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.block.BlockSand的用法示例。


在下文中一共展示了BlockSand.field_72192_a方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: func_72236_l

import net.minecraft.block.BlockSand; //導入方法依賴的package包/類
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 var5 = 32;
      if(!BlockSand.field_72192_a && p_72236_1_.func_72904_c(p_72236_2_ - var5, p_72236_3_ - var5, p_72236_4_ - var5, p_72236_2_ + var5, p_72236_3_ + var5, p_72236_4_ + var5)) {
         EntityFallingSand var6 = new EntityFallingSand(p_72236_1_, (double)((float)p_72236_2_ + 0.5F), (double)((float)p_72236_3_ + 0.5F), (double)((float)p_72236_4_ + 0.5F), this.field_71990_ca);
         p_72236_1_.func_72838_d(var6);
      } else {
         p_72236_1_.func_94571_i(p_72236_2_, p_72236_3_, p_72236_4_);

         while(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_72832_d(p_72236_2_, p_72236_3_, p_72236_4_, this.field_71990_ca, 0, 2);
         }
      }
   }

}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:21,代碼來源:BlockDragonEgg.java

示例2: func_73153_a

import net.minecraft.block.BlockSand; //導入方法依賴的package包/類
public void func_73153_a(IChunkProvider p_73153_1_, int p_73153_2_, int p_73153_3_) {
   BlockSand.field_72192_a = true;
   int var4 = p_73153_2_ * 16;
   int var5 = p_73153_3_ * 16;
   BiomeGenBase var6 = this.field_73200_m.func_72807_a(var4 + 16, var5 + 16);
   var6.func_76728_a(this.field_73200_m, this.field_73200_m.field_73012_v, var4, var5);
   BlockSand.field_72192_a = false;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:9,代碼來源:ChunkProviderEnd.java

示例3: func_73153_a

import net.minecraft.block.BlockSand; //導入方法依賴的package包/類
public void func_73153_a(IChunkProvider p_73153_1_, int p_73153_2_, int p_73153_3_) {
   BlockSand.field_72192_a = true;
   int var4 = p_73153_2_ * 16;
   int var5 = p_73153_3_ * 16;
   this.field_73172_c.func_75051_a(this.field_73175_o, this.field_73181_i, p_73153_2_, p_73153_3_);

   int var6;
   int var7;
   int var8;
   int var9;
   for(var6 = 0; var6 < 8; ++var6) {
      var7 = var4 + this.field_73181_i.nextInt(16) + 8;
      var8 = this.field_73181_i.nextInt(120) + 4;
      var9 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenHellLava(Block.field_71944_C.field_71990_ca, false)).func_76484_a(this.field_73175_o, this.field_73181_i, var7, var8, var9);
   }

   var6 = this.field_73181_i.nextInt(this.field_73181_i.nextInt(10) + 1) + 1;

   int var10;
   for(var7 = 0; var7 < var6; ++var7) {
      var8 = var4 + this.field_73181_i.nextInt(16) + 8;
      var9 = this.field_73181_i.nextInt(120) + 4;
      var10 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenFire()).func_76484_a(this.field_73175_o, this.field_73181_i, var8, var9, var10);
   }

   var6 = this.field_73181_i.nextInt(this.field_73181_i.nextInt(10) + 1);

   for(var7 = 0; var7 < var6; ++var7) {
      var8 = var4 + this.field_73181_i.nextInt(16) + 8;
      var9 = this.field_73181_i.nextInt(120) + 4;
      var10 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenGlowStone1()).func_76484_a(this.field_73175_o, this.field_73181_i, var8, var9, var10);
   }

   for(var7 = 0; var7 < 10; ++var7) {
      var8 = var4 + this.field_73181_i.nextInt(16) + 8;
      var9 = this.field_73181_i.nextInt(128);
      var10 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenGlowStone2()).func_76484_a(this.field_73175_o, this.field_73181_i, var8, var9, var10);
   }

   if(this.field_73181_i.nextInt(1) == 0) {
      var7 = var4 + this.field_73181_i.nextInt(16) + 8;
      var8 = this.field_73181_i.nextInt(128);
      var9 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenFlowers(Block.field_72109_af.field_71990_ca)).func_76484_a(this.field_73175_o, this.field_73181_i, var7, var8, var9);
   }

   if(this.field_73181_i.nextInt(1) == 0) {
      var7 = var4 + this.field_73181_i.nextInt(16) + 8;
      var8 = this.field_73181_i.nextInt(128);
      var9 = var5 + this.field_73181_i.nextInt(16) + 8;
      (new WorldGenFlowers(Block.field_72103_ag.field_71990_ca)).func_76484_a(this.field_73175_o, this.field_73181_i, var7, var8, var9);
   }

   WorldGenMinable var12 = new WorldGenMinable(Block.field_94342_cr.field_71990_ca, 13, Block.field_72012_bb.field_71990_ca);

   int var11;
   for(var8 = 0; var8 < 16; ++var8) {
      var9 = var4 + this.field_73181_i.nextInt(16);
      var10 = this.field_73181_i.nextInt(108) + 10;
      var11 = var5 + this.field_73181_i.nextInt(16);
      var12.func_76484_a(this.field_73175_o, this.field_73181_i, var9, var10, var11);
   }

   for(var8 = 0; var8 < 16; ++var8) {
      var9 = var4 + this.field_73181_i.nextInt(16);
      var10 = this.field_73181_i.nextInt(108) + 10;
      var11 = var5 + this.field_73181_i.nextInt(16);
      (new WorldGenHellLava(Block.field_71944_C.field_71990_ca, true)).func_76484_a(this.field_73175_o, this.field_73181_i, var9, var10, var11);
   }

   BlockSand.field_72192_a = false;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:77,代碼來源:ChunkProviderHell.java

示例4: func_73153_a

import net.minecraft.block.BlockSand; //導入方法依賴的package包/類
public void func_73153_a(IChunkProvider p_73153_1_, int p_73153_2_, int p_73153_3_) {
   BlockSand.field_72192_a = true;
   int var4 = p_73153_2_ * 16;
   int var5 = p_73153_3_ * 16;
   BiomeGenBase var6 = this.field_73230_p.func_72807_a(var4 + 16, var5 + 16);
   this.field_73220_k.setSeed(this.field_73230_p.func_72905_C());
   long var7 = this.field_73220_k.nextLong() / 2L * 2L + 1L;
   long var9 = this.field_73220_k.nextLong() / 2L * 2L + 1L;
   this.field_73220_k.setSeed((long)p_73153_2_ * var7 + (long)p_73153_3_ * var9 ^ this.field_73230_p.func_72905_C());
   boolean var11 = false;
   if(this.field_73229_q) {
      this.field_73223_w.func_75051_a(this.field_73230_p, this.field_73220_k, p_73153_2_, p_73153_3_);
      var11 = this.field_73224_v.func_75051_a(this.field_73230_p, this.field_73220_k, p_73153_2_, p_73153_3_);
      this.field_73225_u.func_75051_a(this.field_73230_p, this.field_73220_k, p_73153_2_, p_73153_3_);
      this.field_73233_x.func_75051_a(this.field_73230_p, this.field_73220_k, p_73153_2_, p_73153_3_);
   }

   int var12;
   int var13;
   int var14;
   if(var6 != BiomeGenBase.field_76769_d && var6 != BiomeGenBase.field_76786_s && !var11 && this.field_73220_k.nextInt(4) == 0) {
      var12 = var4 + this.field_73220_k.nextInt(16) + 8;
      var13 = this.field_73220_k.nextInt(128);
      var14 = var5 + this.field_73220_k.nextInt(16) + 8;
      (new WorldGenLakes(Block.field_71943_B.field_71990_ca)).func_76484_a(this.field_73230_p, this.field_73220_k, var12, var13, var14);
   }

   if(!var11 && this.field_73220_k.nextInt(8) == 0) {
      var12 = var4 + this.field_73220_k.nextInt(16) + 8;
      var13 = this.field_73220_k.nextInt(this.field_73220_k.nextInt(120) + 8);
      var14 = var5 + this.field_73220_k.nextInt(16) + 8;
      if(var13 < 63 || this.field_73220_k.nextInt(10) == 0) {
         (new WorldGenLakes(Block.field_71938_D.field_71990_ca)).func_76484_a(this.field_73230_p, this.field_73220_k, var12, var13, var14);
      }
   }

   for(var12 = 0; var12 < 8; ++var12) {
      var13 = var4 + this.field_73220_k.nextInt(16) + 8;
      var14 = this.field_73220_k.nextInt(128);
      int var15 = var5 + this.field_73220_k.nextInt(16) + 8;
      (new WorldGenDungeons()).func_76484_a(this.field_73230_p, this.field_73220_k, var13, var14, var15);
   }

   var6.func_76728_a(this.field_73230_p, this.field_73220_k, var4, var5);
   SpawnerAnimals.func_77191_a(this.field_73230_p, var6, var4 + 8, var5 + 8, 16, 16, this.field_73220_k);
   var4 += 8;
   var5 += 8;

   for(var12 = 0; var12 < 16; ++var12) {
      for(var13 = 0; var13 < 16; ++var13) {
         var14 = this.field_73230_p.func_72874_g(var4 + var12, var5 + var13);
         if(this.field_73230_p.func_72884_u(var12 + var4, var14 - 1, var13 + var5)) {
            this.field_73230_p.func_72832_d(var12 + var4, var14 - 1, var13 + var5, Block.field_72036_aT.field_71990_ca, 0, 2);
         }

         if(this.field_73230_p.func_72858_w(var12 + var4, var14, var13 + var5)) {
            this.field_73230_p.func_72832_d(var12 + var4, var14, var13 + var5, Block.field_72037_aS.field_71990_ca, 0, 2);
         }
      }
   }

   BlockSand.field_72192_a = false;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:64,代碼來源:ChunkProviderGenerate.java


注:本文中的net.minecraft.block.BlockSand.field_72192_a方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。