Package org.polyfrost.oneconfig.api.config.v1.annotations
package org.polyfrost.oneconfig.api.config.v1.annotations
-
Annotation InterfacesClassDescriptionRenders a user-editable list of colors with each row opening the usual color pickerAnnotation used to specify conditions for this property
Apply this annotation to a field or button method
The value contains an array of strings with each string being the fully qualified path using dots '.' to the condition property
Any property in the array must be aBoolean
For complex conditions useorinvalid reference
Config#addDependency(String, BooleanSupplier)invalid reference
Property#addDisplayCondition(BooleanSupplier...)Renders a reorderable listRenders a searchable selector for status effects (potion effects)Renders a user-editable list of file (or directory) pickersRenders a searchable selector for Minecraft itemsMakes a boolean field the switch that turns the whole mod on and off
The mod's card shows the switch.Renders a dropdown that opens a selectable listRenders a user-editable list of numbers with each row being a number input with stepper arrowsAnnotation used to specify previous names that this option was called before so that when the user updates their mod their config will be kept intact
The format is {"oldCategory.oldSubcategory.oldName1", "oldCategory.oldName2", ...}
Just putting the old name will **NOT** work
You must specify the old category and subcategory (if applicable) as wellA start and end pair withinRangeNumber.min()andRangeNumber.max()edited with two number inputs
This isRangeSliderwithout the track so it suits ranges too wide to drag across
The annotated field holds both ends together as a two-element numeric array or list such asfloat[]orint[]orList<Integer>where index 0 is the start and index 1 is the end
Values are written back in whatever container shape the field already holds so its type is preservedRenders a user-editable list of ranges with each row being a pair of number inputsA slider with two handles selecting a start and end pair withinRangeSlider.min()andRangeSlider.max()
The annotated field holds both ends together as a two-element numeric array or list such asfloat[]orint[]orList<Integer>where index 0 is the start and index 1 is the end
Values are written back in whatever container shape the field already holds so its type is preservedRenders a user-editable list of ranges with each row being a two-handle slider with a value field for each endRenders a user-editable list of numbers with each row being a slider with a value field beside itRenders a user-editable list of text inputs