Class EnumOption<E extends KeyedEnum>
java.lang.Object
journeymap.api.v2.client.option.Option<E>
journeymap.api.v2.client.option.EnumOption<E>
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields inherited from class Option
config, defaultValue -
Constructor Summary
ConstructorsConstructorDescriptionEnumOption(OptionCategory category, String fieldName, String label, E defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.Boolean - creates a dropdown of the enum list. -
Method Summary
Methods inherited from class Option
get, getCategory, getDefaultValue, getFieldName, getLabel, getSortOrder, set, setSortOrder
-
Constructor Details
-
EnumOption
Deprecated, for removal: This API element is subject to removal in a future version.Boolean - creates a dropdown of the enum list. Labels are specified in the getKey fromKeyedEnumthat your enum must extend. For tooltips, your i18n key plus .tooltip in your language json example mod.option.label and mod.option.label.tooltip- Parameters:
category- - The category;fieldName- - The fieldName;defaultValue- - The default enum value.
-
EnumOptioninstead. Scheduled for removal in JourneyMap for Minecraft 26.2.