> For the complete documentation index, see [llms.txt](https://shedaniel.gitbook.io/cloth-config/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shedaniel.gitbook.io/cloth-config/auto-config/generating-a-cloth-config-screen.md).

# 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](/cloth-config/advanced/modmenu-integration.md) for details on how to do that.

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

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