A small but expandable java setting library.
repositories {
maven {
url 'https://jitpack.io/'
}
}
dependencies {
implementation('com.github.nkosmos:starboard:VERSION')
}
no.
Groups are a way of... well grouping setting together. They can be declared as such:
public class MyClass {
private final Group defaultGroup = new Group("Default Group", this);
}
Groups can also have parent/child groups:
public class MyOtherClass {
private final Group parentGroup = new Group("Root Group", this);
private final Group childGroup = new Group("Subgroup", this, parentGroup);
}
Settings can be declared under groups, and capture their value type as such:
public class AnotherClass {
private final Group defaultGroup = new Group("Default Group", this);
private final Setting<String> nameSetting = new Setting<>(defaultGroup, "Name", "Tommy");
private final Setting<Integer> ageSetting = new Setting<>(defaultGroup, "Age", 18);
}
TODO
TODO
This project was based on the LeafClient/Konfigurate kotlin library by Shyrogan. Thanks to him for letting us use their structure and parts of their code!
This project is provided free-of-charge under the MIT License.