---
title: "@RootConfig"
---

`@RootConfig` marks one of your config classes as the "root". It's settings will appear in the config "landing page", underneath the remaining config screen buttons. It does nothing if you only have one config, as that config is a root config by default.

You can add `@RootConfig` to an existing config without worry. Nothing structural or functional changes by using this annotation, purely the location of the settings in-GUI.

<CodeTabs>

```java !!tabs Java
@RootConfig
public class MyRootConfig extends Config { /*implementation*/ }
```

```kotlin !!tabs Kotlin
@RootConfig
class MyRootConfig: Config(Identifier.of(MOD_ID, "root")) { /*implementation*/ }
```

</CodeTabs>

<Callout>
See the documentation page <a target="_blank" rel="noopener" href="https://fzzyhmstrs.github.io/fconfig/-fzzy%20-config/me.fzzyhmstrs.fzzy_config.annotations/-root-config/index.html">here 🗗</a>
</Callout>
