Skip to content

AxolotlClient/AxolotlClient-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0370e76 · Jan 24, 2025
Jan 24, 2025
Jan 24, 2025
Jan 24, 2025
Jan 24, 2025
Jan 24, 2025
Jan 17, 2025
Dec 3, 2024
Apr 3, 2023
Jan 1, 2023
Dec 16, 2023
Nov 25, 2023
Nov 25, 2023
Jan 13, 2025
Jan 13, 2025
Jan 24, 2025
Dec 3, 2024
Dec 3, 2024
Dec 3, 2024

Repository files navigation

AxolotlClient-config

The Config lib of AxolotlClient

Using it in your project

Include it in your mod

repositories {
  maven {
    url "https://moehreag.duckdns.org/maven/releases"
  }
}

dependencies {

  // replace VERSION with the latest version available,
  // check at https://moehreag.duckdns.org/maven/#/releases/io/github/axolotlclient/AxolotlClient-config
  modImplementation include('io.github.axolotlclient:AxolotlClient-config:VERSION')
}
Beta versions
repositories {
  maven {
    url "https://moehreag.duckdns.org/maven/snapshots"
  }
}

dependencies {

  // replace VERSION with the latest version available,
  // check at https://moehreag.duckdns.org/maven/#/snapshots/io/github/axolotlclient/AxolotlClient-config
  modImplementation include('io.github.axolotlclient:AxolotlClient-config:VERSION')
}

Registering a config

AxolotlClientConfig.register(ConfigManager manager);

Creating your own options

You'll need to implement the Option<T> interface. The OptionBase<T> class may be helpful for many cases. Note though that widgets are specific for each Option/Category implementation meaning that if you create your own option you will also have to create a widget for it.

If you want an option to not be saved to the config file, return null in toSerializedValue