Java 类net.minecraft.client.gui.GuiCreateFlatWorld 实例源码

项目: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);
}
项目:Cauldron    文件:WorldType.java   
/**
 * Called when the 'Customize' button is pressed on world creation GUI
 * @param instance The minecraft instance
 * @param guiCreateWorld the createworld GUI
 */
@SideOnly(Side.CLIENT)
public void onCustomizeButton(Minecraft instance, GuiCreateWorld guiCreateWorld)
{
    if (this == FLAT)
    {
        instance.displayGuiScreen(new GuiCreateFlatWorld(guiCreateWorld, guiCreateWorld.field_146334_a));
    }
}
项目:Cauldron    文件:WorldType.java   
/**
 * Called when the 'Customize' button is pressed on world creation GUI
 * @param instance The minecraft instance
 * @param guiCreateWorld the createworld GUI
 */
@SideOnly(Side.CLIENT)
public void onCustomizeButton(Minecraft instance, GuiCreateWorld guiCreateWorld)
{
    if (this == FLAT)
    {
        instance.displayGuiScreen(new GuiCreateFlatWorld(guiCreateWorld, guiCreateWorld.field_146334_a));
    }
}
项目:RuneCraftery    文件:GuiCreateFlatWorldListSlot.java   
private void func_82452_a(int p_82452_1_, int p_82452_2_, ItemStack p_82452_3_) {
   this.func_82451_d(p_82452_1_ + 1, p_82452_2_ + 1);
   GL11.glEnable('\u803a');
   if(p_82452_3_ != null) {
      RenderHelper.func_74520_c();
      GuiCreateFlatWorld.func_82274_h().func_77015_a(this.field_82453_b.field_73886_k, this.field_82453_b.field_73882_e.func_110434_K(), p_82452_3_, p_82452_1_ + 2, p_82452_2_ + 2);
      RenderHelper.func_74518_a();
   }

   GL11.glDisable('\u803a');
}
项目:RuneCraftery    文件:WorldType.java   
/**
 * Called when the 'Customize' button is pressed on world creation GUI
 * @param instance The minecraft instance
 * @param guiCreateWorld the createworld GUI
 */
@SideOnly(Side.CLIENT)
public void onCustomizeButton(Minecraft instance, GuiCreateWorld guiCreateWorld)
{
    if (this == FLAT)
    {
        instance.displayGuiScreen(new GuiCreateFlatWorld(guiCreateWorld, guiCreateWorld.generatorOptionsToUse));
    }
}
项目:BetterNutritionMod    文件:WorldType.java   
/**
 * Called when the 'Customize' button is pressed on world creation GUI
 * @param instance The minecraft instance
 * @param guiCreateWorld the createworld GUI
 */
@SideOnly(Side.CLIENT)
public void onCustomizeButton(Minecraft instance, GuiCreateWorld guiCreateWorld)
{
    if (this == FLAT)
    {
        instance.displayGuiScreen(new GuiCreateFlatWorld(guiCreateWorld, guiCreateWorld.generatorOptionsToUse));
    }
}
项目:RuneCraftery    文件:GuiFlatPresets.java   
public GuiFlatPresets(GuiCreateFlatWorld p_i1049_1_) {
   this.field_82302_c = p_i1049_1_;
}
项目:RuneCraftery    文件:GuiCreateFlatWorldListSlot.java   
public GuiCreateFlatWorldListSlot(GuiCreateFlatWorld p_i1028_1_) {
   super(p_i1028_1_.field_73882_e, p_i1028_1_.field_73880_f, p_i1028_1_.field_73881_g, 43, p_i1028_1_.field_73881_g - 60, 24);
   this.field_82453_b = p_i1028_1_;
   this.field_82454_a = -1;
}
项目:RuneCraftery    文件:GuiCreateFlatWorldListSlot.java   
protected int func_77217_a() {
   return GuiCreateFlatWorld.func_82271_a(this.field_82453_b).func_82650_c().size();
}