本文整理汇总了Java中cpw.mods.fml.client.IModGuiFactory类的典型用法代码示例。如果您正苦于以下问题:Java IModGuiFactory类的具体用法?Java IModGuiFactory怎么用?Java IModGuiFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IModGuiFactory类属于cpw.mods.fml.client包,在下文中一共展示了IModGuiFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: openConfigScreen
import cpw.mods.fml.client.IModGuiFactory; //导入依赖的package包/类
public static void openConfigScreen() {
for (ModContainer mod : Loader.instance().getModList()) {
if (mod.getModId() == null) continue;
if (mod.getModId().equals(Main.MOD_ID)) {
try {
IModGuiFactory guiFactory = FMLClientHandler.instance().getGuiFactoryFor(mod);
GuiScreen newScreen = guiFactory.mainConfigGuiClass().getConstructor(GuiScreen.class).newInstance(Main.mc.currentScreen);
Main.mc.displayGuiScreen(newScreen);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
示例2: runtimeGuiCategories
import cpw.mods.fml.client.IModGuiFactory; //导入依赖的package包/类
@Override
public Set<IModGuiFactory.RuntimeOptionCategoryElement> runtimeGuiCategories() {
return null; //unused
}
示例3: getHandlerFor
import cpw.mods.fml.client.IModGuiFactory; //导入依赖的package包/类
@Override
public IModGuiFactory.RuntimeOptionGuiHandler getHandlerFor(IModGuiFactory.RuntimeOptionCategoryElement element) {
return null; //unused
}
示例4: runtimeGuiCategories
import cpw.mods.fml.client.IModGuiFactory; //导入依赖的package包/类
@Override
public Set<IModGuiFactory.RuntimeOptionCategoryElement> runtimeGuiCategories()
{
return null;
}
示例5: getHandlerFor
import cpw.mods.fml.client.IModGuiFactory; //导入依赖的package包/类
@Override
public IModGuiFactory.RuntimeOptionGuiHandler getHandlerFor(IModGuiFactory.RuntimeOptionCategoryElement element)
{
return null;
}