• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java GuiSelectWorld类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.client.gui.GuiSelectWorld的典型用法代码示例。如果您正苦于以下问题:Java GuiSelectWorld类的具体用法?Java GuiSelectWorld怎么用?Java GuiSelectWorld使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GuiSelectWorld类属于net.minecraft.client.gui包,在下文中一共展示了GuiSelectWorld类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: actionPerformed

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
@Override
protected void actionPerformed(GuiButton button) {
    switch (button.id) {
        case 1: // Singleplayer
            RenderUtil.MINECRAFT.displayGuiScreen(new GuiSelectWorld(this));
            break;
        case 2: // Multiplayer
            RenderUtil.MINECRAFT.displayGuiScreen(new GuiMultiplayer(this));
            break;
        case 3: // Options
            RenderUtil.MINECRAFT.displayGuiScreen(new GuiOptions(this, RenderUtil.MINECRAFT.gameSettings));
            break;
        case 4: // Mods
            RenderUtil.MINECRAFT.displayGuiScreen(new GuiModList(this));
            break;
        case 5: // Addons
            break;
        case 6: // Quit
            RenderUtil.MINECRAFT.shutdown();
    }
}
 
开发者ID:ObsidianBox,项目名称:Obsidian,代码行数:22,代码来源:ObsidianMainMenu.java


示例2: func_77213_a

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected void func_77213_a(int p_77213_1_, boolean p_77213_2_) {
   GuiSelectWorld.func_74072_a(this.field_77254_a, p_77213_1_);
   boolean var3 = GuiSelectWorld.func_74062_b(this.field_77254_a) >= 0 && GuiSelectWorld.func_74062_b(this.field_77254_a) < this.func_77217_a();
   GuiSelectWorld.func_74070_c(this.field_77254_a).field_73742_g = var3;
   GuiSelectWorld.func_74059_d(this.field_77254_a).field_73742_g = var3;
   GuiSelectWorld.func_74071_e(this.field_77254_a).field_73742_g = var3;
   GuiSelectWorld.func_82312_f(this.field_77254_a).field_73742_g = var3;
   if(p_77213_2_ && var3) {
      this.field_77254_a.func_74064_e(p_77213_1_);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:13,代码来源:GuiWorldSlot.java


示例3: func_77214_a

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
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_) {
   SaveFormatComparator var6 = (SaveFormatComparator)GuiSelectWorld.func_74068_a(this.field_77254_a).get(p_77214_1_);
   String var7 = var6.func_75788_b();
   if(var7 == null || MathHelper.func_76139_a(var7)) {
      var7 = GuiSelectWorld.func_82313_g(this.field_77254_a) + " " + (p_77214_1_ + 1);
   }

   String var8 = var6.func_75786_a();
   var8 = var8 + " (" + GuiSelectWorld.func_82315_h(this.field_77254_a).format(new Date(var6.func_75784_e()));
   var8 = var8 + ")";
   String var9 = "";
   if(var6.func_75785_d()) {
      var9 = GuiSelectWorld.func_82311_i(this.field_77254_a) + " " + var9;
   } else {
      var9 = GuiSelectWorld.func_82314_j(this.field_77254_a)[var6.func_75790_f().func_77148_a()];
      if(var6.func_75789_g()) {
         var9 = EnumChatFormatting.DARK_RED + I18n.func_135053_a("gameMode.hardcore") + EnumChatFormatting.RESET;
      }

      if(var6.func_75783_h()) {
         var9 = var9 + ", " + I18n.func_135053_a("selectWorld.cheats");
      }
   }

   this.field_77254_a.func_73731_b(this.field_77254_a.field_73886_k, var7, p_77214_2_ + 2, p_77214_3_ + 1, 16777215);
   this.field_77254_a.func_73731_b(this.field_77254_a.field_73886_k, var8, p_77214_2_ + 2, p_77214_3_ + 12, 8421504);
   this.field_77254_a.func_73731_b(this.field_77254_a.field_73886_k, var9, p_77214_2_ + 2, p_77214_3_ + 12 + 10, 8421504);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:29,代码来源:GuiWorldSlot.java


示例4: func_73875_a

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected void func_73875_a(GuiButton p_73875_1_) {
   if(p_73875_1_.field_73741_f == 0) {
      this.field_73882_e.func_71373_a(new GuiOptions(this, this.field_73882_e.field_71474_y));
   }

   if(p_73875_1_.field_73741_f == 5) {
      this.field_73882_e.func_71373_a(new GuiLanguage(this, this.field_73882_e.field_71474_y, this.field_73882_e.func_135016_M()));
   }

   if(p_73875_1_.field_73741_f == 1) {
      this.field_73882_e.func_71373_a(new GuiSelectWorld(this));
   }

   if(p_73875_1_.field_73741_f == 2) {
      this.field_73882_e.func_71373_a(new GuiMultiplayer(this));
   }

   if(p_73875_1_.field_73741_f == 14 && this.field_130023_H.field_73748_h) {
      this.func_140005_i();
   }

   if(p_73875_1_.field_73741_f == 4) {
      this.field_73882_e.func_71400_g();
   }

   if(p_73875_1_.field_73741_f == 11) {
      this.field_73882_e.func_71371_a("Demo_World", "Demo_World", DemoWorldServer.field_73071_a);
   }

   if(p_73875_1_.field_73741_f == 12) {
      ISaveFormat var2 = this.field_73882_e.func_71359_d();
      WorldInfo var3 = var2.func_75803_c("Demo_World");
      if(var3 != null) {
         GuiYesNo var4 = GuiSelectWorld.func_74061_a(this, var3.func_76065_j(), 12);
         this.field_73882_e.func_71373_a(var4);
      }
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:40,代码来源:GuiMainMenu.java


示例5: handleGuiOpen

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@ForgeSubscribe
public void handleGuiOpen(GuiOpenEvent event)
{
	if (event.gui == null)
	{
		return;
	}

	if (event.gui.getClass().equals(GuiCreateWorld.class))
	{
		GuiScreen parent = ObfuscationReflectionHelper.getPrivateValue(GuiCreateWorld.class, (GuiCreateWorld) event.gui, 0);
		event.gui = new HackedCreateWorld(parent);
	}
	else if (event.gui.getClass().equals(GuiSelectWorld.class))
	{
		for (Field f : GuiSelectWorld.class.getDeclaredFields())
		{
			if (f.getType().isArray())
			{
				try
				{
					f.setAccessible(true);
					String[] strings = Arrays.copyOf((String[]) f.get(event.gui), 4);
					strings[3] = I18n.getString("gamemode." + Constants.GAMEMODE);
					f.set(event.gui, strings);
					return;
				}
				catch (Exception e)
				{
					e.printStackTrace();
				}
			}
		}
	}
}
 
开发者ID:Ubiquitous-Spice,项目名称:Modjam-3,代码行数:37,代码来源:HackyEventHandler.java


示例6: actionPerformed

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected void actionPerformed(GuiButton p_146284_1_)
{
    if (p_146284_1_.id == 0)
    {
        this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
    }

    if (p_146284_1_.id == 5)
    {
        this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings, this.mc.getLanguageManager()));
    }

    if (p_146284_1_.id == 1)
    {
        this.mc.displayGuiScreen(new GuiSelectWorld(this));
    }

    if (p_146284_1_.id == 2)
    {
        this.mc.displayGuiScreen(new GuiMultiplayer(this));
    }

    if (p_146284_1_.id == 14)
    {
        this.func_140005_i();
    }

    if (p_146284_1_.id == 4)
    {
        this.mc.shutdown();
    }

    if (p_146284_1_.id == 6)
    {
        this.mc.displayGuiScreen(new GuiModList(this));
    }

    if (p_146284_1_.id == 11)
    {
        this.mc.launchIntegratedServer("Demo_World", "Demo_World", DemoWorldServer.demoWorldSettings);
    }

    if (p_146284_1_.id == 12)
    {
        ISaveFormat isaveformat = this.mc.getSaveLoader();
        WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");

        if (worldinfo != null)
        {
            GuiYesNo guiyesno = GuiSelectWorld.func_152129_a(this, worldinfo.getWorldName(), 12);
            this.mc.displayGuiScreen(guiyesno);
        }
    }
}
 
开发者ID:jtrent238,项目名称:PopularMMOS-EpicProportions-Mod,代码行数:55,代码来源:GuiMainMenu.java


示例7: actionPerformed

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected void actionPerformed(GuiButton button) throws IOException
{
	if (button.id == 0)
	{
		this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
	}

	if (button.id == 5)
	{
		this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings, this.mc
				.getLanguageManager()));
	}

	if (button.id == 1)
	{
		this.mc.displayGuiScreen(new GuiSelectWorld(this));
	}

	if (button.id == 2)
	{
		this.mc.displayGuiScreen(new GuiMultiplayer(this));
	}

	if (button.id == 14 && this.realmsButton.visible)
	{
		this.switchToRealms();
	}

	if (button.id == 4)
	{
		this.mc.shutdown();
	}

	if (button.id == 6)
	{
		this.mc.displayGuiScreen(new net.minecraftforge.fml.client.GuiModList(this));
	}

	if (button.id == 11)
	{
		this.mc.launchIntegratedServer("Demo_World", "Demo_World",
				DemoWorldServer.demoWorldSettings);
	}

	if (button.id == 12)
	{
		ISaveFormat isaveformat = this.mc.getSaveLoader();
		WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");

		if (worldinfo != null)
		{
			GuiYesNo guiyesno = GuiSelectWorld
					.func_152129_a(this, worldinfo.getWorldName(), 12);
			this.mc.displayGuiScreen(guiyesno);
		}
	}
}
 
开发者ID:Archiving,项目名称:ARKCraft-Code,代码行数:58,代码来源:GuiMainMenuOverride.java


示例8: GuiWorldSlot

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
public GuiWorldSlot(GuiSelectWorld p_i1053_1_) {
   super(p_i1053_1_.field_73882_e, p_i1053_1_.field_73880_f, p_i1053_1_.field_73881_g, 32, p_i1053_1_.field_73881_g - 64, 36);
   this.field_77254_a = p_i1053_1_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:GuiWorldSlot.java


示例9: func_77217_a

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected int func_77217_a() {
   return GuiSelectWorld.func_74068_a(this.field_77254_a).size();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:GuiWorldSlot.java


示例10: func_77218_a

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected boolean func_77218_a(int p_77218_1_) {
   return p_77218_1_ == GuiSelectWorld.func_74062_b(this.field_77254_a);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:GuiWorldSlot.java


示例11: func_77212_b

import net.minecraft.client.gui.GuiSelectWorld; //导入依赖的package包/类
protected int func_77212_b() {
   return GuiSelectWorld.func_74068_a(this.field_77254_a).size() * 36;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:GuiWorldSlot.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java STMessage类代码示例发布时间:2022-05-22
下一篇:
Java ListType类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap