net.minecraftforge.fml.client.IModGuiFactory Java Examples
The following examples show how to use
net.minecraftforge.fml.client.IModGuiFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActionOpenModConfig.java From Custom-Main-Menu with MIT License | 6 votes |
@Override public void perform(Object source, GuiCustom parent) { for (ModContainer mod : Loader.instance().getModList()) { if (mod.getModId().equals(modid)) { IModGuiFactory guiFactory = FMLClientHandler.instance().getGuiFactoryFor(mod); if (guiFactory != null) { GuiScreen newScreen = guiFactory.createConfigGui(parent); Minecraft.getMinecraft().displayGuiScreen(newScreen); } } } }
Example #2
Source File: GuiFactory.java From AgriCraft with MIT License | 4 votes |
@Override public Set<IModGuiFactory.RuntimeOptionCategoryElement> runtimeGuiCategories() { return Collections.emptySet(); }