本文整理汇总了Java中cpw.mods.fml.client.GuiModList类的典型用法代码示例。如果您正苦于以下问题:Java GuiModList类的具体用法?Java GuiModList怎么用?Java GuiModList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GuiModList类属于cpw.mods.fml.client包,在下文中一共展示了GuiModList类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onEvent
import cpw.mods.fml.client.GuiModList; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)
public void onEvent(GuiOpenEvent event) {
if (event.gui instanceof GuiIngameModOptions) {
event.gui = new GuiModList(new GuiIngameMenu());
}
}
开发者ID:PC-Logix,项目名称:OpenFM,代码行数:8,代码来源:OpenFM.java
示例2: onGuiOpen
import cpw.mods.fml.client.GuiModList; //导入依赖的package包/类
@SubscribeEvent
public void onGuiOpen(GuiOpenEvent event) {
if (event.gui == null) {
return;
}
try {
if (event.gui.getClass() == GuiModList.class) {
event.setCanceled(true);
Minecraft.getMinecraft().displayGuiScreen(new GuiEnhancedModList((GuiScreen) _mainMenu.get(event.gui)));
}
if (event.gui.getClass() == GuiIngameModOptions.class) {
event.setCanceled(true);
Minecraft.getMinecraft().displayGuiScreen(new GuiEnhancedModList((GuiScreen) _parentScreen.get(event.gui)));
}
} catch (Exception e) {
Throwables.propagate(e);
}
}
开发者ID:SleepyTrousers,项目名称:EnderCore,代码行数:19,代码来源:EventHandlerGui.java
示例3: actionPerformed
import cpw.mods.fml.client.GuiModList; //导入依赖的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
示例4: buttonAction
import cpw.mods.fml.client.GuiModList; //导入依赖的package包/类
public void buttonAction(int buttonId) {
if (!renderWorld)
buttonId += 1; //This is so that quickload is removed if there's no world to quickload
switch (buttonId) {
case 0:
mc.displayGuiScreen(null);
mc.setIngameFocus();
GuiOverride.world = Integer.MIN_VALUE;
break;
case 1:
mc.displayGuiScreen(new GuiSelectWorld(this));
break;
case 2:
mc.displayGuiScreen(new GuiMultiplayer(this));
break;
case 3:
mc.displayGuiScreen(new GuiModList(this));
break;
case 4:
mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
break;
case 5:
mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings, this.mc.func_135016_M()));
break;
case 6:
mc.shutdown();
break;
}
}
开发者ID:arilotter,项目名称:SimpleMenu,代码行数:30,代码来源:GuiNewMainMenu.java
示例5: actionPerformed
import cpw.mods.fml.client.GuiModList; //导入依赖的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
示例6: actionPerformed
import cpw.mods.fml.client.GuiModList; //导入依赖的package包/类
/**
* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
*/
protected void actionPerformed(GuiButton par1GuiButton)
{
if (par1GuiButton.id == 0)
{
this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
}
if (par1GuiButton.id == 5)
{
this.mc.displayGuiScreen(new GuiLanguage(this, this.mc.gameSettings, this.mc.getLanguageManager()));
}
if (par1GuiButton.id == 1)
{
this.mc.displayGuiScreen(new GuiSelectWorld(this));
}
if (par1GuiButton.id == 2)
{
this.mc.displayGuiScreen(new GuiMultiplayer(this));
}
if (par1GuiButton.id == 14 && this.minecraftRealmsButton.drawButton)
{
this.func_140005_i();
}
if (par1GuiButton.id == 4)
{
this.mc.shutdown();
}
if (par1GuiButton.id == 6)
{
this.mc.displayGuiScreen(new GuiModList(this));
}
if (par1GuiButton.id == 11)
{
this.mc.launchIntegratedServer("Demo_World", "Demo_World", DemoWorldServer.demoWorldSettings);
}
if (par1GuiButton.id == 12)
{
ISaveFormat isaveformat = this.mc.getSaveLoader();
WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");
if (worldinfo != null)
{
GuiYesNo guiyesno = GuiSelectWorld.getDeleteWorldScreen(this, worldinfo.getWorldName(), 12);
this.mc.displayGuiScreen(guiyesno);
}
}
}
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:58,代码来源:GuiMainMenu.java
示例7: GuiRobot
import cpw.mods.fml.client.GuiModList; //导入依赖的package包/类
public GuiRobot(GuiModList parent, ArrayList<String> mods, int listWidth) {
}
开发者ID:modmuss50,项目名称:Network,代码行数:4,代码来源:GuiRobot.java
注:本文中的cpw.mods.fml.client.GuiModList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论