-
-
Notifications
You must be signed in to change notification settings - Fork 0
Opening the Screen
Bizarre Cube edited this page Aug 14, 2026
·
2 revisions
The settings screen is created with a single call:
Screen screen = holder.createScreen(parentScreen);
minecraft.setScreen(screen); Fabric (Mod Menu):
public class ModMenuIntegration implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return MyConfig.getHolder()::createScreen;
}
} Forge:
ModLoadingContext.get().registerExtensionPoint(
ConfigScreenHandler.ConfigScreenFactory.class,
() -> new ConfigScreenHandler.ConfigScreenFactory(
(mc, screen) -> holder.createScreen(screen))); NeoForge:
ModLoadingContext.get().registerExtensionPoint(
IConfigScreenFactory.class,
() -> (container, screen) -> holder.createScreen(screen)); The screen contains tabs by group (@ConfigGroup / @Category), Done/Cancel buttons and a reset button (active while Shift is held).