Class EnumOption<E extends KeyedEnum>

java.lang.Object
journeymap.api.v2.client.option.Option<E>
journeymap.api.v2.client.option.EnumOption<E>

public class EnumOption<E extends KeyedEnum> extends Option<E>
  • Constructor Details

    • EnumOption

      public EnumOption(OptionCategory category, String fieldName, String label, E defaultValue)
      Boolean - creates a dropdown of the enum list. Labels are specified in the getKey from KeyedEnum that 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.