⚙️
Resourceful Config
  • Welcome
  • Creating Your First Config
    • Config Entries
      • Config Object Entries
    • Config Categories
    • Config Buttons
    • Config Info
Powered by GitBook
On this page
  1. Creating Your First Config

Config Categories

Config categories are like normal configs except they can be included in other configs or categories. Categories must be annotated with the @Category annotation its only change that is different from a config is that its id is not restricted to being very basic characters.

Config categories unlike entries are added to a config or category via its annotation with categories parameter. Categories are ordered by the way they are put into the annotations list. So if you want category 1 to show up before category 2 have category 1 higher in the list.

The following is an example of how to add categories to a config, this can also be done for a category as it has the same parameter.

@Config(
    value = "demo",
    categories = {
            Category1.class,
            DemoConfig.Category2.class
    }
)
PreviousConfig Object EntriesNextConfig Buttons

Last updated 11 months ago