Skip to content

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);  

Mod Menu Integration

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).

Clone this wiki locally