当前位置: 首页>>代码示例>>Java>>正文


Java IntCache.func_76445_a方法代码示例

本文整理汇总了Java中net.minecraft.world.gen.layer.IntCache.func_76445_a方法的典型用法代码示例。如果您正苦于以下问题:Java IntCache.func_76445_a方法的具体用法?Java IntCache.func_76445_a怎么用?Java IntCache.func_76445_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.world.gen.layer.IntCache的用法示例。


在下文中一共展示了IntCache.func_76445_a方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ - 1;
   int var6 = p_75904_2_ - 1;
   int var7 = p_75904_3_ + 2;
   int var8 = p_75904_4_ + 2;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var11 = 0; var11 < p_75904_4_; ++var11) {
      for(int var12 = 0; var12 < p_75904_3_; ++var12) {
         int var13 = var9[var12 + 0 + (var11 + 0) * var7];
         int var14 = var9[var12 + 2 + (var11 + 0) * var7];
         int var15 = var9[var12 + 0 + (var11 + 2) * var7];
         int var16 = var9[var12 + 2 + (var11 + 2) * var7];
         int var17 = var9[var12 + 1 + (var11 + 1) * var7];
         this.func_75903_a((long)(var12 + p_75904_1_), (long)(var11 + p_75904_2_));
         if(var17 == 0 && var13 == 0 && var14 == 0 && var15 == 0 && var16 == 0 && this.func_75902_a(100) == 0) {
            var10[var12 + var11 * p_75904_3_] = BiomeGenBase.field_76789_p.field_76756_M;
         } else {
            var10[var12 + var11 * p_75904_3_] = var17;
         }
      }
   }

   return var10;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:27,代码来源:GenLayerAddMushroomIsland.java

示例2: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75909_a.func_75904_a(p_75904_1_ - 1, p_75904_2_ - 1, p_75904_3_ + 2, p_75904_4_ + 2);
   int[] var6 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var7 = 0; var7 < p_75904_4_; ++var7) {
      for(int var8 = 0; var8 < p_75904_3_; ++var8) {
         this.func_75903_a((long)(var8 + p_75904_1_), (long)(var7 + p_75904_2_));
         int var9 = var5[var8 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
         if((var9 != BiomeGenBase.field_76780_h.field_76756_M || this.func_75902_a(6) != 0) && (var9 != BiomeGenBase.field_76782_w.field_76756_M && var9 != BiomeGenBase.field_76792_x.field_76756_M || this.func_75902_a(8) != 0)) {
            var6[var8 + var7 * p_75904_3_] = var9;
         } else {
            var6[var8 + var7 * p_75904_3_] = BiomeGenBase.field_76781_i.field_76756_M;
         }
      }
   }

   return var6;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:GenLayerSwampRivers.java

示例3: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75910_b.func_75904_a(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
   int[] var6 = this.field_75911_c.func_75904_a(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
   int[] var7 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var8 = 0; var8 < p_75904_3_ * p_75904_4_; ++var8) {
      if(var5[var8] == BiomeGenBase.field_76771_b.field_76756_M) {
         var7[var8] = var5[var8];
      } else if(var6[var8] >= 0) {
         if(var5[var8] == BiomeGenBase.field_76774_n.field_76756_M) {
            var7[var8] = BiomeGenBase.field_76777_m.field_76756_M;
         } else if(var5[var8] != BiomeGenBase.field_76789_p.field_76756_M && var5[var8] != BiomeGenBase.field_76788_q.field_76756_M) {
            var7[var8] = var6[var8];
         } else {
            var7[var8] = BiomeGenBase.field_76788_q.field_76756_M;
         }
      } else {
         var7[var8] = var5[var8];
      }
   }

   return var7;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:24,代码来源:GenLayerRiverMix.java

示例4: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var6 = 0; var6 < p_75904_4_; ++var6) {
      for(int var7 = 0; var7 < p_75904_3_; ++var7) {
         this.func_75903_a((long)(p_75904_1_ + var7), (long)(p_75904_2_ + var6));
         var5[var7 + var6 * p_75904_3_] = this.func_75902_a(10) == 0?1:0;
      }
   }

   if(p_75904_1_ > -p_75904_3_ && p_75904_1_ <= 0 && p_75904_2_ > -p_75904_4_ && p_75904_2_ <= 0) {
      var5[-p_75904_1_ + -p_75904_2_ * p_75904_3_] = 1;
   }

   return var5;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:17,代码来源:GenLayerIsland.java

示例5: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ - 1;
   int var6 = p_75904_2_ - 1;
   int var7 = p_75904_3_ + 2;
   int var8 = p_75904_4_ + 2;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var11 = 0; var11 < p_75904_4_; ++var11) {
      for(int var12 = 0; var12 < p_75904_3_; ++var12) {
         int var13 = var9[var12 + 0 + (var11 + 1) * var7];
         int var14 = var9[var12 + 2 + (var11 + 1) * var7];
         int var15 = var9[var12 + 1 + (var11 + 0) * var7];
         int var16 = var9[var12 + 1 + (var11 + 2) * var7];
         int var17 = var9[var12 + 1 + (var11 + 1) * var7];
         if(var17 != 0 && var13 != 0 && var14 != 0 && var15 != 0 && var16 != 0 && var17 == var13 && var17 == var15 && var17 == var14 && var17 == var16) {
            var10[var12 + var11 * p_75904_3_] = -1;
         } else {
            var10[var12 + var11 * p_75904_3_] = BiomeGenBase.field_76781_i.field_76756_M;
         }
      }
   }

   return var10;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:26,代码来源:GenLayerRiver.java

示例6: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ - 1;
   int var6 = p_75904_2_ - 1;
   int var7 = p_75904_3_ + 2;
   int var8 = p_75904_4_ + 2;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var11 = 0; var11 < p_75904_4_; ++var11) {
      for(int var12 = 0; var12 < p_75904_3_; ++var12) {
         int var13 = var9[var12 + 1 + (var11 + 1) * var7];
         this.func_75903_a((long)(var12 + p_75904_1_), (long)(var11 + p_75904_2_));
         if(var13 == 0) {
            var10[var12 + var11 * p_75904_3_] = 0;
         } else {
            int var14 = this.func_75902_a(5);
            if(var14 == 0) {
               var14 = BiomeGenBase.field_76774_n.field_76756_M;
            } else {
               var14 = 1;
            }

            var10[var12 + var11 * p_75904_3_] = var14;
         }
      }
   }

   return var10;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:30,代码来源:GenLayerAddSnow.java

示例7: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75909_a.func_75904_a(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
   int[] var6 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var7 = 0; var7 < p_75904_4_; ++var7) {
      for(int var8 = 0; var8 < p_75904_3_; ++var8) {
         this.func_75903_a((long)(var8 + p_75904_1_), (long)(var7 + p_75904_2_));
         var6[var8 + var7 * p_75904_3_] = var5[var8 + var7 * p_75904_3_] > 0?this.func_75902_a(2) + 2:0;
      }
   }

   return var6;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:14,代码来源:GenLayerRiverInit.java

示例8: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ >> 1;
   int var6 = p_75904_2_ >> 1;
   int var7 = (p_75904_3_ >> 1) + 3;
   int var8 = (p_75904_4_ >> 1) + 3;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(var7 * 2 * var8 * 2);
   int var11 = var7 << 1;

   int var13;
   for(int var12 = 0; var12 < var8 - 1; ++var12) {
      var13 = var12 << 1;
      int var14 = var13 * var11;
      int var15 = var9[0 + (var12 + 0) * var7];
      int var16 = var9[0 + (var12 + 1) * var7];

      for(int var17 = 0; var17 < var7 - 1; ++var17) {
         this.func_75903_a((long)(var17 + var5 << 1), (long)(var12 + var6 << 1));
         int var18 = var9[var17 + 1 + (var12 + 0) * var7];
         int var19 = var9[var17 + 1 + (var12 + 1) * var7];
         var10[var14] = var15;
         var10[var14++ + var11] = this.func_75913_a(var15, var16);
         var10[var14] = this.func_75913_a(var15, var18);
         var10[var14++ + var11] = this.func_75912_b(var15, var18, var16, var19);
         var15 = var18;
         var16 = var19;
      }
   }

   int[] var20 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(var13 = 0; var13 < p_75904_4_; ++var13) {
      System.arraycopy(var10, (var13 + (p_75904_2_ & 1)) * (var7 << 1) + (p_75904_1_ & 1), var20, var13 * p_75904_3_, p_75904_3_);
   }

   return var20;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:38,代码来源:GenLayerFuzzyZoom.java

示例9: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ - 1;
   int var6 = p_75904_2_ - 1;
   int var7 = p_75904_3_ + 2;
   int var8 = p_75904_4_ + 2;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var11 = 0; var11 < p_75904_4_; ++var11) {
      for(int var12 = 0; var12 < p_75904_3_; ++var12) {
         int var13 = var9[var12 + 0 + (var11 + 1) * var7];
         int var14 = var9[var12 + 2 + (var11 + 1) * var7];
         int var15 = var9[var12 + 1 + (var11 + 0) * var7];
         int var16 = var9[var12 + 1 + (var11 + 2) * var7];
         int var17 = var9[var12 + 1 + (var11 + 1) * var7];
         if(var13 == var14 && var15 == var16) {
            this.func_75903_a((long)(var12 + p_75904_1_), (long)(var11 + p_75904_2_));
            if(this.func_75902_a(2) == 0) {
               var17 = var13;
            } else {
               var17 = var15;
            }
         } else {
            if(var13 == var14) {
               var17 = var13;
            }

            if(var15 == var16) {
               var17 = var15;
            }
         }

         var10[var12 + var11 * p_75904_3_] = var17;
      }
   }

   return var10;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:39,代码来源:GenLayerSmooth.java

示例10: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ >> 1;
   int var6 = p_75904_2_ >> 1;
   int var7 = (p_75904_3_ >> 1) + 3;
   int var8 = (p_75904_4_ >> 1) + 3;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(var7 * 2 * var8 * 2);
   int var11 = var7 << 1;

   int var13;
   for(int var12 = 0; var12 < var8 - 1; ++var12) {
      var13 = var12 << 1;
      int var14 = var13 * var11;
      int var15 = var9[0 + (var12 + 0) * var7];
      int var16 = var9[0 + (var12 + 1) * var7];

      for(int var17 = 0; var17 < var7 - 1; ++var17) {
         this.func_75903_a((long)(var17 + var5 << 1), (long)(var12 + var6 << 1));
         int var18 = var9[var17 + 1 + (var12 + 0) * var7];
         int var19 = var9[var17 + 1 + (var12 + 1) * var7];
         var10[var14] = var15;
         var10[var14++ + var11] = this.func_75917_a(var15, var16);
         var10[var14] = this.func_75917_a(var15, var18);
         var10[var14++ + var11] = this.func_75916_b(var15, var18, var16, var19);
         var15 = var18;
         var16 = var19;
      }
   }

   int[] var20 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(var13 = 0; var13 < p_75904_4_; ++var13) {
      System.arraycopy(var10, (var13 + (p_75904_2_ & 1)) * (var7 << 1) + (p_75904_1_ & 1), var20, var13 * p_75904_3_, p_75904_3_);
   }

   return var20;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:38,代码来源:GenLayerZoom.java

示例11: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75909_a.func_75904_a(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
   int[] var6 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var7 = 0; var7 < p_75904_4_; ++var7) {
      for(int var8 = 0; var8 < p_75904_3_; ++var8) {
         this.func_75903_a((long)(var8 + p_75904_1_), (long)(var7 + p_75904_2_));
         int var9 = var5[var8 + var7 * p_75904_3_];
         if(var9 == 0) {
            var6[var8 + var7 * p_75904_3_] = 0;
         } else if(var9 == BiomeGenBase.field_76789_p.field_76756_M) {
            var6[var8 + var7 * p_75904_3_] = var9;
         } else if(var9 == 1) {
            var6[var8 + var7 * p_75904_3_] = this.field_75914_b[this.func_75902_a(this.field_75914_b.length)].field_76756_M;
         } else {
            int var10 = this.field_75914_b[this.func_75902_a(this.field_75914_b.length)].field_76756_M;
            if(var10 == BiomeGenBase.field_76768_g.field_76756_M) {
               var6[var8 + var7 * p_75904_3_] = var10;
            } else {
               var6[var8 + var7 * p_75904_3_] = BiomeGenBase.field_76774_n.field_76756_M;
            }
         }
      }
   }

   return var6;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:28,代码来源:GenLayerBiome.java

示例12: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75909_a.func_75904_a(p_75904_1_ - 1, p_75904_2_ - 1, p_75904_3_ + 2, p_75904_4_ + 2);
   int[] var6 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var7 = 0; var7 < p_75904_4_; ++var7) {
      for(int var8 = 0; var8 < p_75904_3_; ++var8) {
         this.func_75903_a((long)(var8 + p_75904_1_), (long)(var7 + p_75904_2_));
         int var9 = var5[var8 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
         int var10;
         int var11;
         int var12;
         int var13;
         if(var9 == BiomeGenBase.field_76789_p.field_76756_M) {
            var10 = var5[var8 + 1 + (var7 + 1 - 1) * (p_75904_3_ + 2)];
            var11 = var5[var8 + 1 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var12 = var5[var8 + 1 - 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var13 = var5[var8 + 1 + (var7 + 1 + 1) * (p_75904_3_ + 2)];
            if(var10 != BiomeGenBase.field_76771_b.field_76756_M && var11 != BiomeGenBase.field_76771_b.field_76756_M && var12 != BiomeGenBase.field_76771_b.field_76756_M && var13 != BiomeGenBase.field_76771_b.field_76756_M) {
               var6[var8 + var7 * p_75904_3_] = var9;
            } else {
               var6[var8 + var7 * p_75904_3_] = BiomeGenBase.field_76788_q.field_76756_M;
            }
         } else if(var9 != BiomeGenBase.field_76771_b.field_76756_M && var9 != BiomeGenBase.field_76781_i.field_76756_M && var9 != BiomeGenBase.field_76780_h.field_76756_M && var9 != BiomeGenBase.field_76770_e.field_76756_M) {
            var10 = var5[var8 + 1 + (var7 + 1 - 1) * (p_75904_3_ + 2)];
            var11 = var5[var8 + 1 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var12 = var5[var8 + 1 - 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var13 = var5[var8 + 1 + (var7 + 1 + 1) * (p_75904_3_ + 2)];
            if(var10 != BiomeGenBase.field_76771_b.field_76756_M && var11 != BiomeGenBase.field_76771_b.field_76756_M && var12 != BiomeGenBase.field_76771_b.field_76756_M && var13 != BiomeGenBase.field_76771_b.field_76756_M) {
               var6[var8 + var7 * p_75904_3_] = var9;
            } else {
               var6[var8 + var7 * p_75904_3_] = BiomeGenBase.field_76787_r.field_76756_M;
            }
         } else if(var9 == BiomeGenBase.field_76770_e.field_76756_M) {
            var10 = var5[var8 + 1 + (var7 + 1 - 1) * (p_75904_3_ + 2)];
            var11 = var5[var8 + 1 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var12 = var5[var8 + 1 - 1 + (var7 + 1) * (p_75904_3_ + 2)];
            var13 = var5[var8 + 1 + (var7 + 1 + 1) * (p_75904_3_ + 2)];
            if(var10 == BiomeGenBase.field_76770_e.field_76756_M && var11 == BiomeGenBase.field_76770_e.field_76756_M && var12 == BiomeGenBase.field_76770_e.field_76756_M && var13 == BiomeGenBase.field_76770_e.field_76756_M) {
               var6[var8 + var7 * p_75904_3_] = var9;
            } else {
               var6[var8 + var7 * p_75904_3_] = BiomeGenBase.field_76783_v.field_76756_M;
            }
         } else {
            var6[var8 + var7 * p_75904_3_] = var9;
         }
      }
   }

   return var6;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:51,代码来源:GenLayerShore.java

示例13: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int[] var5 = this.field_75909_a.func_75904_a(p_75904_1_ - 1, p_75904_2_ - 1, p_75904_3_ + 2, p_75904_4_ + 2);
   int[] var6 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var7 = 0; var7 < p_75904_4_; ++var7) {
      for(int var8 = 0; var8 < p_75904_3_; ++var8) {
         this.func_75903_a((long)(var8 + p_75904_1_), (long)(var7 + p_75904_2_));
         int var9 = var5[var8 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
         if(this.func_75902_a(3) == 0) {
            int var10 = var9;
            if(var9 == BiomeGenBase.field_76769_d.field_76756_M) {
               var10 = BiomeGenBase.field_76786_s.field_76756_M;
            } else if(var9 == BiomeGenBase.field_76767_f.field_76756_M) {
               var10 = BiomeGenBase.field_76785_t.field_76756_M;
            } else if(var9 == BiomeGenBase.field_76768_g.field_76756_M) {
               var10 = BiomeGenBase.field_76784_u.field_76756_M;
            } else if(var9 == BiomeGenBase.field_76772_c.field_76756_M) {
               var10 = BiomeGenBase.field_76767_f.field_76756_M;
            } else if(var9 == BiomeGenBase.field_76774_n.field_76756_M) {
               var10 = BiomeGenBase.field_76775_o.field_76756_M;
            } else if(var9 == BiomeGenBase.field_76782_w.field_76756_M) {
               var10 = BiomeGenBase.field_76792_x.field_76756_M;
            }

            if(var10 == var9) {
               var6[var8 + var7 * p_75904_3_] = var9;
            } else {
               int var11 = var5[var8 + 1 + (var7 + 1 - 1) * (p_75904_3_ + 2)];
               int var12 = var5[var8 + 1 + 1 + (var7 + 1) * (p_75904_3_ + 2)];
               int var13 = var5[var8 + 1 - 1 + (var7 + 1) * (p_75904_3_ + 2)];
               int var14 = var5[var8 + 1 + (var7 + 1 + 1) * (p_75904_3_ + 2)];
               if(var11 == var9 && var12 == var9 && var13 == var9 && var14 == var9) {
                  var6[var8 + var7 * p_75904_3_] = var10;
               } else {
                  var6[var8 + var7 * p_75904_3_] = var9;
               }
            }
         } else {
            var6[var8 + var7 * p_75904_3_] = var9;
         }
      }
   }

   return var6;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:46,代码来源:GenLayerHills.java

示例14: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   int var5 = p_75904_1_ - 1;
   int var6 = p_75904_2_ - 1;
   int var7 = p_75904_3_ + 2;
   int var8 = p_75904_4_ + 2;
   int[] var9 = this.field_75909_a.func_75904_a(var5, var6, var7, var8);
   int[] var10 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(int var11 = 0; var11 < p_75904_4_; ++var11) {
      for(int var12 = 0; var12 < p_75904_3_; ++var12) {
         int var13 = var9[var12 + 0 + (var11 + 0) * var7];
         int var14 = var9[var12 + 2 + (var11 + 0) * var7];
         int var15 = var9[var12 + 0 + (var11 + 2) * var7];
         int var16 = var9[var12 + 2 + (var11 + 2) * var7];
         int var17 = var9[var12 + 1 + (var11 + 1) * var7];
         this.func_75903_a((long)(var12 + p_75904_1_), (long)(var11 + p_75904_2_));
         if(var17 == 0 && (var13 != 0 || var14 != 0 || var15 != 0 || var16 != 0)) {
            int var18 = 1;
            int var19 = 1;
            if(var13 != 0 && this.func_75902_a(var18++) == 0) {
               var19 = var13;
            }

            if(var14 != 0 && this.func_75902_a(var18++) == 0) {
               var19 = var14;
            }

            if(var15 != 0 && this.func_75902_a(var18++) == 0) {
               var19 = var15;
            }

            if(var16 != 0 && this.func_75902_a(var18++) == 0) {
               var19 = var16;
            }

            if(this.func_75902_a(3) == 0) {
               var10[var12 + var11 * p_75904_3_] = var19;
            } else if(var19 == BiomeGenBase.field_76774_n.field_76756_M) {
               var10[var12 + var11 * p_75904_3_] = BiomeGenBase.field_76776_l.field_76756_M;
            } else {
               var10[var12 + var11 * p_75904_3_] = 0;
            }
         } else if(var17 > 0 && (var13 == 0 || var14 == 0 || var15 == 0 || var16 == 0)) {
            if(this.func_75902_a(5) == 0) {
               if(var17 == BiomeGenBase.field_76774_n.field_76756_M) {
                  var10[var12 + var11 * p_75904_3_] = BiomeGenBase.field_76776_l.field_76756_M;
               } else {
                  var10[var12 + var11 * p_75904_3_] = 0;
               }
            } else {
               var10[var12 + var11 * p_75904_3_] = var17;
            }
         } else {
            var10[var12 + var11 * p_75904_3_] = var17;
         }
      }
   }

   return var10;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:61,代码来源:GenLayerAddIsland.java

示例15: func_75904_a

import net.minecraft.world.gen.layer.IntCache; //导入方法依赖的package包/类
public int[] func_75904_a(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_) {
   p_75904_1_ -= 2;
   p_75904_2_ -= 2;
   byte var5 = 2;
   int var6 = 1 << var5;
   int var7 = p_75904_1_ >> var5;
   int var8 = p_75904_2_ >> var5;
   int var9 = (p_75904_3_ >> var5) + 3;
   int var10 = (p_75904_4_ >> var5) + 3;
   int[] var11 = this.field_75909_a.func_75904_a(var7, var8, var9, var10);
   int var12 = var9 << var5;
   int var13 = var10 << var5;
   int[] var14 = IntCache.func_76445_a(var12 * var13);

   int var16;
   for(int var15 = 0; var15 < var10 - 1; ++var15) {
      var16 = var11[0 + (var15 + 0) * var9];
      int var17 = var11[0 + (var15 + 1) * var9];

      for(int var18 = 0; var18 < var9 - 1; ++var18) {
         double var19 = (double)var6 * 0.9D;
         this.func_75903_a((long)(var18 + var7 << var5), (long)(var15 + var8 << var5));
         double var21 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19;
         double var23 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19;
         this.func_75903_a((long)(var18 + var7 + 1 << var5), (long)(var15 + var8 << var5));
         double var25 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19 + (double)var6;
         double var27 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19;
         this.func_75903_a((long)(var18 + var7 << var5), (long)(var15 + var8 + 1 << var5));
         double var29 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19;
         double var31 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19 + (double)var6;
         this.func_75903_a((long)(var18 + var7 + 1 << var5), (long)(var15 + var8 + 1 << var5));
         double var33 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19 + (double)var6;
         double var35 = ((double)this.func_75902_a(1024) / 1024.0D - 0.5D) * var19 + (double)var6;
         int var37 = var11[var18 + 1 + (var15 + 0) * var9];
         int var38 = var11[var18 + 1 + (var15 + 1) * var9];

         for(int var39 = 0; var39 < var6; ++var39) {
            int var40 = ((var15 << var5) + var39) * var12 + (var18 << var5);

            for(int var41 = 0; var41 < var6; ++var41) {
               double var42 = ((double)var39 - var23) * ((double)var39 - var23) + ((double)var41 - var21) * ((double)var41 - var21);
               double var44 = ((double)var39 - var27) * ((double)var39 - var27) + ((double)var41 - var25) * ((double)var41 - var25);
               double var46 = ((double)var39 - var31) * ((double)var39 - var31) + ((double)var41 - var29) * ((double)var41 - var29);
               double var48 = ((double)var39 - var35) * ((double)var39 - var35) + ((double)var41 - var33) * ((double)var41 - var33);
               if(var42 < var44 && var42 < var46 && var42 < var48) {
                  var14[var40++] = var16;
               } else if(var44 < var42 && var44 < var46 && var44 < var48) {
                  var14[var40++] = var37;
               } else if(var46 < var42 && var46 < var44 && var46 < var48) {
                  var14[var40++] = var17;
               } else {
                  var14[var40++] = var38;
               }
            }
         }

         var16 = var37;
         var17 = var38;
      }
   }

   int[] var50 = IntCache.func_76445_a(p_75904_3_ * p_75904_4_);

   for(var16 = 0; var16 < p_75904_4_; ++var16) {
      System.arraycopy(var14, (var16 + (p_75904_2_ & var6 - 1)) * (var9 << var5) + (p_75904_1_ & var6 - 1), var50, var16 * p_75904_3_, p_75904_3_);
   }

   return var50;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:70,代码来源:GenLayerVoronoiZoom.java


注:本文中的net.minecraft.world.gen.layer.IntCache.func_76445_a方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。