Class BooleanOption

java.lang.Object
journeymap.api.v2.client.option.Option<Boolean>
journeymap.api.v2.client.option.BooleanOption

public class BooleanOption extends Option<Boolean>
  • Constructor Details

    • BooleanOption

      public BooleanOption(OptionCategory category, String fieldName, String label, Boolean defaultValue)
      Boolean - creates a checkbox 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;
      label - - The label, can be the display string or i18n key.
      defaultValue - - The default value
    • BooleanOption

      public BooleanOption(OptionCategory category, String fieldName, String label, Boolean defaultValue, Boolean isMaster)
      Boolean - creates a checkbox 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;
      label - - The label, can be the display string or i18n key.
      defaultValue - - The default value
      isMaster - - Makes this value first in the last, and if disabled the whole category is disabled.
  • Method Details

    • isMaster

      public Boolean isMaster()