Generating a Cloth Config Screen

Integrate with ModMenu to generate the config gui. Don't forget to register this entrypoint in your fabric.mod.json. See ModMenu Integration for details on how to do that.

@Environment(EnvType.CLIENT)
class ModMenuIntegration implements ModMenuApi {

    @Override
    public ConfigScreenFactory<?> getModConfigScreenFactory() {
        return parent -> AutoConfig.getConfigScreen(ModConfig.class, parent).get();
    }
}

Last updated