6
1
Fork
You've already forked AxolotlClient-config
0
The Config lib of AxolotlClient
  • Java 100%
Find a file
2026年06月16日 12:54:34 +02:00
1.8.9-rounded port to 26.2 2026年06月13日 21:03:42 +02:00
1.8.9-vanilla port to 26.2 2026年06月13日 21:03:42 +02:00
1.20-rounded port to 26.2 2026年06月13日 21:03:42 +02:00
1.20-vanilla port to 26.2 2026年06月13日 21:03:42 +02:00
1.21-rounded port to 26.2 2026年06月13日 21:03:42 +02:00
1.21-vanilla port to 26.2 2026年06月13日 21:03:42 +02:00
1.21.11-rounded update 1.21.11 2026年06月16日 12:54:34 +02:00
1.21.11-vanilla update 1.21.11 2026年06月16日 12:54:34 +02:00
1.latest-rounded port to 26.2 2026年06月13日 21:03:42 +02:00
1.latest-vanilla port to 26.2 2026年06月13日 21:03:42 +02:00
26.1-rounded port to 26.2 2026年06月13日 21:03:42 +02:00
26.1-vanilla port to 26.2 2026年06月13日 21:03:42 +02:00
common fix some bugs, remove duplicates of Updatable, implement legacy-lwjgl3 api 2026年05月01日 00:54:45 +02:00
common-rounded fix color selectors not displaying accurate values 2025年12月31日 19:10:09 +01:00
gradle/wrapper port to 26.2 2026年06月13日 21:03:42 +02:00
.editorconfig fix some navigation issues on 1.19.4 2023年04月03日 11:30:28 +02:00
.gitattributes make multiversion project 2023年01月01日 01:06:50 +01:00
.gitignore remove ConfigManager from screen parameters 2023年12月16日 17:54:23 +01:00
build.gradle port to 26.2 2026年06月13日 21:03:42 +02:00
gradle.properties port to 26.2 2026年06月13日 21:03:42 +02:00
gradlew port to 26.2 2026年06月13日 21:03:42 +02:00
gradlew.bat port to 26.2 2026年06月13日 21:03:42 +02:00
HEADER add license headers 2023年11月25日 10:32:30 +01:00
LICENSE add license headers 2023年11月25日 10:32:30 +01:00
README.md fix instantiating widgets for options extending the base type identifying a widget 2025年03月05日 13:20:36 +01:00
settings.gradle update 1.21.11 2026年06月16日 12:54:34 +02:00

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(ConfigManagermanager);

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. This does not apply to options extending the provided types though.

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