本文整理匯總了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;
}