Skip to content

Annotations

Bizarre Cube edited this page Aug 14, 2026 · 2 revisions

@AutoConfig (class)

Parameter Default Purpose
name() — (required) Config name; determines the file name and the translation key prefix.
snakeCaseKeys() false Convert translation keys to snake_case.
translate() false Enable localization via translation keys.

Field Annotations

Annotation Parameters Purpose
@BooleanConfig yesNo() = true Boolean display: Yes/No (default) or On/Off when yesNo = false.
@Slider min(), max(), step() = 1 Integer slider for int/Integer.
@Color alpha() = false Color picker for int/Integer; alpha = true — with transparency.
@EnumConfig translate() = false Localize enum values (works together with @AutoConfig(translate=true)).
@ListConfig expanded(), addToFront(), editable() = true, translateElements() Configure list display.
@ConfigGroup value() Places the field into a tab/group with the given key.
@Category expanded() = false A nested object shown as an expandable category.
@Tooltip Tooltip (requires a translation key).

Clone this wiki locally