Java 类net.minecraft.world.gen.FlatLayerInfo 实例源码

项目:DecompiledMinecraft    文件:GuiFlatPresets.java   
private static void func_175354_a(String p_175354_0_, Item p_175354_1_, int p_175354_2_, BiomeGenBase p_175354_3_, List<String> p_175354_4_, FlatLayerInfo... p_175354_5_)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = p_175354_5_.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(p_175354_5_[i]);
    }

    flatgeneratorinfo.setBiome(p_175354_3_.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (p_175354_4_ != null)
    {
        for (String s : p_175354_4_)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(p_175354_1_, p_175354_2_, p_175354_0_, flatgeneratorinfo.toString()));
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_175354_a(String p_175354_0_, Item p_175354_1_, int p_175354_2_, BiomeGenBase p_175354_3_, List<String> p_175354_4_, FlatLayerInfo... p_175354_5_)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = p_175354_5_.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(p_175354_5_[i]);
    }

    flatgeneratorinfo.setBiome(p_175354_3_.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (p_175354_4_ != null)
    {
        for (String s : p_175354_4_)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(p_175354_1_, p_175354_2_, p_175354_0_, flatgeneratorinfo.toString()));
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_175354_a(String p_175354_0_, Item p_175354_1_, int p_175354_2_, BiomeGenBase p_175354_3_, List<String> p_175354_4_, FlatLayerInfo... p_175354_5_)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = p_175354_5_.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(p_175354_5_[i]);
    }

    flatgeneratorinfo.setBiome(p_175354_3_.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (p_175354_4_ != null)
    {
        for (String s : p_175354_4_)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(p_175354_1_, p_175354_2_, p_175354_0_, flatgeneratorinfo.toString()));
}
项目:Backmemed    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, int iconMetadata, Biome biome, List<String> features, FlatLayerInfo... layers)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = layers.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(layers[i]);
    }

    flatgeneratorinfo.setBiome(Biome.getIdForBiome(biome));
    flatgeneratorinfo.updateLayers();

    for (String s : features)
    {
        flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(icon, iconMetadata, name, flatgeneratorinfo.toString()));
}
项目:CustomWorldGen    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, int iconMetadata, Biome biome, @Nullable List<String> features, FlatLayerInfo... layers)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = layers.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(layers[i]);
    }

    flatgeneratorinfo.setBiome(Biome.getIdForBiome(biome));
    flatgeneratorinfo.updateLayers();

    if (features != null)
    {
        for (String s : features)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(icon, iconMetadata, name, flatgeneratorinfo.toString()));
}
项目:Simple-Dimensions    文件:GuiFlatDimensionPresets.java   
private static void registerPreset(String name, Item icon, int iconMetadata, Biome biome, List<String> features, FlatLayerInfo... layers)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = layers.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(layers[i]);
    }

    flatgeneratorinfo.setBiome(Biome.getIdForBiome(biome));
    flatgeneratorinfo.updateLayers();

    if (features != null)
    {
        for (String s : features)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatDimensionPresets.LayerItem(icon, iconMetadata, name, flatgeneratorinfo.toString()));
}
项目:Resilience-Client-Source    文件:GuiCreateFlatWorld.java   
protected void drawSlot(int p_148126_1_, int p_148126_2_, int p_148126_3_, int p_148126_4_, Tessellator p_148126_5_, int p_148126_6_, int p_148126_7_)
{
    FlatLayerInfo var8 = (FlatLayerInfo)GuiCreateFlatWorld.this.field_146387_g.getFlatLayers().get(GuiCreateFlatWorld.this.field_146387_g.getFlatLayers().size() - p_148126_1_ - 1);
    Item var9 = Item.getItemFromBlock(var8.func_151536_b());
    ItemStack var10 = var8.func_151536_b() == Blocks.air ? null : new ItemStack(var9, 1, var8.getFillBlockMeta());
    String var11 = var10 != null && var9 != null ? var9.getItemStackDisplayName(var10) : "Air";
    this.func_148225_a(p_148126_2_, p_148126_3_, var10);
    GuiCreateFlatWorld.this.fontRendererObj.drawString(var11, p_148126_2_ + 18 + 5, p_148126_3_ + 3, 16777215);
    String var12;

    if (p_148126_1_ == 0)
    {
        var12 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(var8.getLayerCount())});
    }
    else if (p_148126_1_ == GuiCreateFlatWorld.this.field_146387_g.getFlatLayers().size() - 1)
    {
        var12 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(var8.getLayerCount())});
    }
    else
    {
        var12 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(var8.getLayerCount())});
    }

    GuiCreateFlatWorld.this.fontRendererObj.drawString(var12, p_148126_2_ + 2 + 213 - GuiCreateFlatWorld.this.fontRendererObj.getStringWidth(var12), p_148126_3_ + 3, 16777215);
}
项目:Resilience-Client-Source    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List p_146421_3_, FlatLayerInfo ... p_146421_4_)
{
    FlatGeneratorInfo var5 = new FlatGeneratorInfo();

    for (int var6 = p_146421_4_.length - 1; var6 >= 0; --var6)
    {
        var5.getFlatLayers().add(p_146421_4_[var6]);
    }

    var5.setBiome(p_146421_2_.biomeID);
    var5.func_82645_d();

    if (p_146421_3_ != null)
    {
        Iterator var8 = p_146421_3_.iterator();

        while (var8.hasNext())
        {
            String var7 = (String)var8.next();
            var5.getWorldFeatures().put(var7, new HashMap());
        }
    }

    field_146431_f.add(new GuiFlatPresets.LayerItem(p_146421_1_, p_146421_0_, var5.toString()));
}
项目:ExpandedRailsMod    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, int iconMetadata, Biome biome, @Nullable List<String> features, FlatLayerInfo... layers)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = layers.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(layers[i]);
    }

    flatgeneratorinfo.setBiome(Biome.getIdForBiome(biome));
    flatgeneratorinfo.updateLayers();

    if (features != null)
    {
        for (String s : features)
        {
            flatgeneratorinfo.getWorldFeatures().put(s, Maps.<String, String>newHashMap());
        }
    }

    FLAT_WORLD_PRESETS.add(new GuiFlatPresets.LayerItem(icon, iconMetadata, name, flatgeneratorinfo.toString()));
}
项目:Cauldron    文件:GuiCreateFlatWorld.java   
protected void drawSlot(int p_148126_1_, int p_148126_2_, int p_148126_3_, int p_148126_4_, Tessellator p_148126_5_, int p_148126_6_, int p_148126_7_)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().get(GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - p_148126_1_ - 1);
    Item item = Item.getItemFromBlock(flatlayerinfo.func_151536_b());
    ItemStack itemstack = flatlayerinfo.func_151536_b() == Blocks.air ? null : new ItemStack(item, 1, flatlayerinfo.getFillBlockMeta());
    String s = itemstack != null && item != null ? item.getItemStackDisplayName(itemstack) : "Air";
    this.func_148225_a(p_148126_2_, p_148126_3_, itemstack);
    GuiCreateFlatWorld.this.fontRendererObj.drawString(s, p_148126_2_ + 18 + 5, p_148126_3_ + 3, 16777215);
    String s1;

    if (p_148126_1_ == 0)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (p_148126_1_ == GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - 1)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    GuiCreateFlatWorld.this.fontRendererObj.drawString(s1, p_148126_2_ + 2 + 213 - GuiCreateFlatWorld.this.fontRendererObj.getStringWidth(s1), p_148126_3_ + 3, 16777215);
}
项目:Cauldron    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List p_146421_3_, FlatLayerInfo ... p_146421_4_)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = p_146421_4_.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(p_146421_4_[i]);
    }

    flatgeneratorinfo.setBiome(p_146421_2_.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (p_146421_3_ != null)
    {
        Iterator iterator = p_146421_3_.iterator();

        while (iterator.hasNext())
        {
            String s1 = (String)iterator.next();
            flatgeneratorinfo.getWorldFeatures().put(s1, new HashMap());
        }
    }

    field_146431_f.add(new GuiFlatPresets.LayerItem(p_146421_1_, p_146421_0_, flatgeneratorinfo.toString()));
}
项目:Cauldron    文件:GuiCreateFlatWorld.java   
protected void drawSlot(int p_148126_1_, int p_148126_2_, int p_148126_3_, int p_148126_4_, Tessellator p_148126_5_, int p_148126_6_, int p_148126_7_)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().get(GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - p_148126_1_ - 1);
    Item item = Item.getItemFromBlock(flatlayerinfo.func_151536_b());
    ItemStack itemstack = flatlayerinfo.func_151536_b() == Blocks.air ? null : new ItemStack(item, 1, flatlayerinfo.getFillBlockMeta());
    String s = itemstack != null && item != null ? item.getItemStackDisplayName(itemstack) : "Air";
    this.func_148225_a(p_148126_2_, p_148126_3_, itemstack);
    GuiCreateFlatWorld.this.fontRendererObj.drawString(s, p_148126_2_ + 18 + 5, p_148126_3_ + 3, 16777215);
    String s1;

    if (p_148126_1_ == 0)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (p_148126_1_ == GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - 1)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    GuiCreateFlatWorld.this.fontRendererObj.drawString(s1, p_148126_2_ + 2 + 213 - GuiCreateFlatWorld.this.fontRendererObj.getStringWidth(s1), p_148126_3_ + 3, 16777215);
}
项目:Cauldron    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List p_146421_3_, FlatLayerInfo ... p_146421_4_)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int i = p_146421_4_.length - 1; i >= 0; --i)
    {
        flatgeneratorinfo.getFlatLayers().add(p_146421_4_[i]);
    }

    flatgeneratorinfo.setBiome(p_146421_2_.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (p_146421_3_ != null)
    {
        Iterator iterator = p_146421_3_.iterator();

        while (iterator.hasNext())
        {
            String s1 = (String)iterator.next();
            flatgeneratorinfo.getWorldFeatures().put(s1, new HashMap());
        }
    }

    field_146431_f.add(new GuiFlatPresets.LayerItem(p_146421_1_, p_146421_0_, flatgeneratorinfo.toString()));
}
项目:RuneCraftery    文件:FlatGeneratorInfo.java   
private static List func_82652_b(String p_82652_0_) {
   if(p_82652_0_ != null && p_82652_0_.length() >= 1) {
      ArrayList var1 = new ArrayList();
      String[] var2 = p_82652_0_.split(",");
      int var3 = 0;
      String[] var4 = var2;
      int var5 = var2.length;

      for(int var6 = 0; var6 < var5; ++var6) {
         String var7 = var4[var6];
         FlatLayerInfo var8 = func_82646_a(var7, var3);
         if(var8 == null) {
            return null;
         }

         var1.add(var8);
         var3 += var8.func_82657_a();
      }

      return var1;
   } else {
      return null;
   }
}
项目:RuneCraftery    文件:GuiFlatPresets.java   
public static void func_82294_a(String p_82294_0_, int p_82294_1_, BiomeGenBase p_82294_2_, List p_82294_3_, FlatLayerInfo ... p_82294_4_) {
   FlatGeneratorInfo var5 = new FlatGeneratorInfo();

   for(int var6 = p_82294_4_.length - 1; var6 >= 0; --var6) {
      var5.func_82650_c().add(p_82294_4_[var6]);
   }

   var5.func_82647_a(p_82294_2_.field_76756_M);
   var5.func_82645_d();
   if(p_82294_3_ != null) {
      Iterator var8 = p_82294_3_.iterator();

      while(var8.hasNext()) {
         String var7 = (String)var8.next();
         var5.func_82644_b().put(var7, new HashMap());
      }
   }

   field_82301_b.add(new GuiFlatPresetsItem(p_82294_1_, p_82294_0_, var5.toString()));
}
项目:RuneCraftery    文件:GuiCreateFlatWorldListSlot.java   
protected void func_77214_a(int p_77214_1_, int p_77214_2_, int p_77214_3_, int p_77214_4_, Tessellator p_77214_5_) {
   FlatLayerInfo var6 = (FlatLayerInfo)GuiCreateFlatWorld.func_82271_a(this.field_82453_b).func_82650_c().get(GuiCreateFlatWorld.func_82271_a(this.field_82453_b).func_82650_c().size() - p_77214_1_ - 1);
   ItemStack var7 = var6.func_82659_b() == 0?null:new ItemStack(var6.func_82659_b(), 1, var6.func_82658_c());
   String var8 = var7 == null?"Air":Item.field_77698_e[var6.func_82659_b()].func_77653_i(var7);
   this.func_82452_a(p_77214_2_, p_77214_3_, var7);
   this.field_82453_b.field_73886_k.func_78276_b(var8, p_77214_2_ + 18 + 5, p_77214_3_ + 3, 16777215);
   String var9;
   if(p_77214_1_ == 0) {
      var9 = I18n.func_135052_a("createWorld.customize.flat.layer.top", new Object[]{Integer.valueOf(var6.func_82657_a())});
   } else if(p_77214_1_ == GuiCreateFlatWorld.func_82271_a(this.field_82453_b).func_82650_c().size() - 1) {
      var9 = I18n.func_135052_a("createWorld.customize.flat.layer.bottom", new Object[]{Integer.valueOf(var6.func_82657_a())});
   } else {
      var9 = I18n.func_135052_a("createWorld.customize.flat.layer", new Object[]{Integer.valueOf(var6.func_82657_a())});
   }

   this.field_82453_b.field_73886_k.func_78276_b(var9, p_77214_2_ + 2 + 213 - this.field_82453_b.field_73886_k.func_78256_a(var9), p_77214_3_ + 3, 16777215);
}
项目:RuneCraftery    文件:GuiFlatPresets.java   
/**
 * Add a flat world preset.
 */
public static void addPreset(String par0Str, int par1, BiomeGenBase par2BiomeGenBase, List par3List, FlatLayerInfo ... par4ArrayOfFlatLayerInfo)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int j = par4ArrayOfFlatLayerInfo.length - 1; j >= 0; --j)
    {
        flatgeneratorinfo.getFlatLayers().add(par4ArrayOfFlatLayerInfo[j]);
    }

    flatgeneratorinfo.setBiome(par2BiomeGenBase.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (par3List != null)
    {
        Iterator iterator = par3List.iterator();

        while (iterator.hasNext())
        {
            String s1 = (String)iterator.next();
            flatgeneratorinfo.getWorldFeatures().put(s1, new HashMap());
        }
    }

    presets.add(new GuiFlatPresetsItem(par1, par0Str, flatgeneratorinfo.toString()));
}
项目:RuneCraftery    文件:GuiCreateFlatWorldListSlot.java   
protected void drawSlot(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().get(GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().size() - par1 - 1);
    ItemStack itemstack = flatlayerinfo.getFillBlock() == 0 ? null : new ItemStack(flatlayerinfo.getFillBlock(), 1, flatlayerinfo.getFillBlockMeta());
    String s = itemstack == null ? "Air" : Item.itemsList[flatlayerinfo.getFillBlock()].getItemStackDisplayName(itemstack);
    this.func_82452_a(par2, par3, itemstack);
    this.createFlatWorldGui.fontRenderer.drawString(s, par2 + 18 + 5, par3 + 3, 16777215);
    String s1;

    if (par1 == 0)
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (par1 == GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().size() - 1)
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    this.createFlatWorldGui.fontRenderer.drawString(s1, par2 + 2 + 213 - this.createFlatWorldGui.fontRenderer.getStringWidth(s1), par3 + 3, 16777215);
}
项目:BetterNutritionMod    文件:GuiFlatPresets.java   
/**
 * Add a flat world preset.
 */
public static void addPreset(String par0Str, int par1, BiomeGenBase par2BiomeGenBase, List par3List, FlatLayerInfo ... par4ArrayOfFlatLayerInfo)
{
    FlatGeneratorInfo flatgeneratorinfo = new FlatGeneratorInfo();

    for (int j = par4ArrayOfFlatLayerInfo.length - 1; j >= 0; --j)
    {
        flatgeneratorinfo.getFlatLayers().add(par4ArrayOfFlatLayerInfo[j]);
    }

    flatgeneratorinfo.setBiome(par2BiomeGenBase.biomeID);
    flatgeneratorinfo.func_82645_d();

    if (par3List != null)
    {
        Iterator iterator = par3List.iterator();

        while (iterator.hasNext())
        {
            String s1 = (String)iterator.next();
            flatgeneratorinfo.getWorldFeatures().put(s1, new HashMap());
        }
    }

    presets.add(new GuiFlatPresetsItem(par1, par0Str, flatgeneratorinfo.toString()));
}
项目:BetterNutritionMod    文件:GuiCreateFlatWorldListSlot.java   
protected void drawSlot(int par1, int par2, int par3, int par4, Tessellator par5Tessellator)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().get(GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().size() - par1 - 1);
    ItemStack itemstack = flatlayerinfo.getFillBlock() == 0 ? null : new ItemStack(flatlayerinfo.getFillBlock(), 1, flatlayerinfo.getFillBlockMeta());
    String s = itemstack == null ? "Air" : Item.itemsList[flatlayerinfo.getFillBlock()].getItemStackDisplayName(itemstack);
    this.func_82452_a(par2, par3, itemstack);
    this.createFlatWorldGui.fontRenderer.drawString(s, par2 + 18 + 5, par3 + 3, 16777215);
    String s1;

    if (par1 == 0)
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (par1 == GuiCreateFlatWorld.func_82271_a(this.createFlatWorldGui).getFlatLayers().size() - 1)
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.getStringParams("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    this.createFlatWorldGui.fontRenderer.drawString(s1, par2 + 2 + 213 - this.createFlatWorldGui.fontRenderer.getStringWidth(s1), par3 + 3, 16777215);
}
项目:RuneCraftery    文件:FlatGeneratorInfo.java   
public static FlatGeneratorInfo func_82649_e() {
   FlatGeneratorInfo var0 = new FlatGeneratorInfo();
   var0.func_82647_a(BiomeGenBase.field_76772_c.field_76756_M);
   var0.func_82650_c().add(new FlatLayerInfo(1, Block.field_71986_z.field_71990_ca));
   var0.func_82650_c().add(new FlatLayerInfo(2, Block.field_71979_v.field_71990_ca));
   var0.func_82650_c().add(new FlatLayerInfo(1, Block.field_71980_u.field_71990_ca));
   var0.func_82645_d();
   var0.func_82644_b().put("village", new HashMap());
   return var0;
}
项目:DecompiledMinecraft    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo... p_146425_3_)
{
    func_175354_a(p_146425_0_, p_146425_1_, 0, p_146425_2_, (List<String>)null, p_146425_3_);
}
项目:DecompiledMinecraft    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List<String> p_146421_3_, FlatLayerInfo... p_146421_4_)
{
    func_175354_a(p_146421_0_, p_146421_1_, 0, p_146421_2_, p_146421_3_, p_146421_4_);
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo... p_146425_3_)
{
    func_175354_a(p_146425_0_, p_146425_1_, 0, p_146425_2_, (List<String>)null, p_146425_3_);
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List<String> p_146421_3_, FlatLayerInfo... p_146421_4_)
{
    func_175354_a(p_146421_0_, p_146421_1_, 0, p_146421_2_, p_146421_3_, p_146421_4_);
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo... p_146425_3_)
{
    func_175354_a(p_146425_0_, p_146425_1_, 0, p_146425_2_, (List<String>)null, p_146425_3_);
}
项目:BaseClient    文件:GuiFlatPresets.java   
private static void func_146421_a(String p_146421_0_, Item p_146421_1_, BiomeGenBase p_146421_2_, List<String> p_146421_3_, FlatLayerInfo... p_146421_4_)
{
    func_175354_a(p_146421_0_, p_146421_1_, 0, p_146421_2_, p_146421_3_, p_146421_4_);
}
项目:Backmemed    文件:GuiCreateFlatWorld.java   
protected void drawSlot(int entryID, int insideLeft, int yPos, int insideSlotHeight, int mouseXIn, int mouseYIn)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().get(GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - entryID - 1);
    IBlockState iblockstate = flatlayerinfo.getLayerMaterial();
    Block block = iblockstate.getBlock();
    Item item = Item.getItemFromBlock(block);

    if (item == Items.field_190931_a)
    {
        if (block != Blocks.WATER && block != Blocks.FLOWING_WATER)
        {
            if (block == Blocks.LAVA || block == Blocks.FLOWING_LAVA)
            {
                item = Items.LAVA_BUCKET;
            }
        }
        else
        {
            item = Items.WATER_BUCKET;
        }
    }

    ItemStack itemstack = new ItemStack(item, 1, item.getHasSubtypes() ? block.getMetaFromState(iblockstate) : 0);
    String s = item.getItemStackDisplayName(itemstack);
    this.drawItem(insideLeft, yPos, itemstack);
    GuiCreateFlatWorld.this.fontRendererObj.drawString(s, insideLeft + 18 + 5, yPos + 3, 16777215);
    String s1;

    if (entryID == 0)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (entryID == GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - 1)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    GuiCreateFlatWorld.this.fontRendererObj.drawString(s1, insideLeft + 2 + 213 - GuiCreateFlatWorld.this.fontRendererObj.getStringWidth(s1), yPos + 3, 16777215);
}
项目:Backmemed    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, List<String> features, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, features, layers);
}
项目:CustomWorldGen    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, (List<String>)null, layers);
}
项目:CustomWorldGen    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, @Nullable List<String> features, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, features, layers);
}
项目:Simple-Dimensions    文件:GuiFlatDimensionPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, (List<String>)null, layers);
}
项目:Simple-Dimensions    文件:GuiFlatDimensionPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, List<String> features, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, features, layers);
}
项目:Simple-Dimensions    文件:GuiCreateFlatDimension.java   
protected void drawSlot(int entryID, int insideLeft, int yPos, int insideSlotHeight, int mouseXIn, int mouseYIn, float partialTicks)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatDimension.this.theFlatGeneratorInfo.getFlatLayers().get(GuiCreateFlatDimension.this.theFlatGeneratorInfo.getFlatLayers().size() - entryID - 1);
    IBlockState iblockstate = flatlayerinfo.getLayerMaterial();
    Block block = iblockstate.getBlock();
    Item item = Item.getItemFromBlock(block);
    ItemStack itemstack = block != Blocks.AIR && item != null ? new ItemStack(item, 1, block.getMetaFromState(iblockstate)) : null;
    String s = itemstack == null ? I18n.format("createWorld.customize.flat.air", new Object[0]) : item.getItemStackDisplayName(itemstack);

    if (item == null)
    {
        if (block != Blocks.WATER && block != Blocks.FLOWING_WATER)
        {
            if (block == Blocks.LAVA || block == Blocks.FLOWING_LAVA)
            {
                item = Items.LAVA_BUCKET;
            }
        }
        else
        {
            item = Items.WATER_BUCKET;
        }

        if (item != null)
        {
            itemstack = new ItemStack(item, 1, block.getMetaFromState(iblockstate));
            s = block.getLocalizedName();
        }
    }

    this.drawItem(insideLeft, yPos, itemstack);
    GuiCreateFlatDimension.this.fontRenderer.drawString(s, insideLeft + 18 + 5, yPos + 3, 16777215);
    String s1;

    if (entryID == 0)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (entryID == GuiCreateFlatDimension.this.theFlatGeneratorInfo.getFlatLayers().size() - 1)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    GuiCreateFlatDimension.this.fontRenderer.drawString(s1, insideLeft + 2 + 213 - GuiCreateFlatDimension.this.fontRenderer.getStringWidth(s1), yPos + 3, 16777215);
}
项目:Resilience-Client-Source    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo ... p_146425_3_)
{
    func_146421_a(p_146425_0_, p_146425_1_, p_146425_2_, (List)null, p_146425_3_);
}
项目:ExpandedRailsMod    文件:GuiCreateFlatWorld.java   
protected void drawSlot(int entryID, int insideLeft, int yPos, int insideSlotHeight, int mouseXIn, int mouseYIn)
{
    FlatLayerInfo flatlayerinfo = (FlatLayerInfo)GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().get(GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - entryID - 1);
    IBlockState iblockstate = flatlayerinfo.getLayerMaterial();
    Block block = iblockstate.getBlock();
    Item item = Item.getItemFromBlock(block);
    ItemStack itemstack = block != Blocks.AIR && item != null ? new ItemStack(item, 1, block.getMetaFromState(iblockstate)) : null;
    String s = itemstack == null ? I18n.format("createWorld.customize.flat.air", new Object[0]) : item.getItemStackDisplayName(itemstack);

    if (item == null)
    {
        if (block != Blocks.WATER && block != Blocks.FLOWING_WATER)
        {
            if (block == Blocks.LAVA || block == Blocks.FLOWING_LAVA)
            {
                item = Items.LAVA_BUCKET;
            }
        }
        else
        {
            item = Items.WATER_BUCKET;
        }

        if (item != null)
        {
            itemstack = new ItemStack(item, 1, block.getMetaFromState(iblockstate));
            s = block.getLocalizedName();
        }
    }

    this.drawItem(insideLeft, yPos, itemstack);
    GuiCreateFlatWorld.this.fontRendererObj.drawString(s, insideLeft + 18 + 5, yPos + 3, 16777215);
    String s1;

    if (entryID == 0)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.top", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else if (entryID == GuiCreateFlatWorld.this.theFlatGeneratorInfo.getFlatLayers().size() - 1)
    {
        s1 = I18n.format("createWorld.customize.flat.layer.bottom", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }
    else
    {
        s1 = I18n.format("createWorld.customize.flat.layer", new Object[] {Integer.valueOf(flatlayerinfo.getLayerCount())});
    }

    GuiCreateFlatWorld.this.fontRendererObj.drawString(s1, insideLeft + 2 + 213 - GuiCreateFlatWorld.this.fontRendererObj.getStringWidth(s1), yPos + 3, 16777215);
}
项目:ExpandedRailsMod    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, (List<String>)null, layers);
}
项目:ExpandedRailsMod    文件:GuiFlatPresets.java   
private static void registerPreset(String name, Item icon, Biome biome, @Nullable List<String> features, FlatLayerInfo... layers)
{
    registerPreset(name, icon, 0, biome, features, layers);
}
项目:Cauldron    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo ... p_146425_3_)
{
    func_146421_a(p_146425_0_, p_146425_1_, p_146425_2_, (List)null, p_146425_3_);
}
项目:Cauldron    文件:GuiFlatPresets.java   
private static void func_146425_a(String p_146425_0_, Item p_146425_1_, BiomeGenBase p_146425_2_, FlatLayerInfo ... p_146425_3_)
{
    func_146421_a(p_146425_0_, p_146425_1_, p_146425_2_, (List)null, p_146425_3_);
}