Class PickupOptionNewMode


public class PickupOptionNewMode extends PickupOption
A CheckBoxOption that toggles a pickup setting in Pickup.PU_NEW_MODE.
  • Constructor Details

    • PickupOptionNewMode

      public PickupOptionNewMode(@NotNull @NotNull Pickup pickup, long option, @NotNull @NotNull String tooltipText)
      Creates a new instance.
      Parameters:
      pickup - the pickup instance for modifying the pickup mode
      option - the affected pickup mode
      tooltipText - the tooltip text to explain this option
  • Method Details

    • execute

      protected void execute(boolean checked)
      Description copied from class: CheckBoxOption
      Executes the action associated with this check box option. Must be implemented in subclasses.
      Specified by:
      execute in class CheckBoxOption
      Parameters:
      checked - whether the checkbox option is checked
    • isDefaultChecked

      public boolean isDefaultChecked()
      Description copied from class: CheckBoxOption
      Returns the default value of CheckBoxOption.isChecked().
      Specified by:
      isDefaultChecked in class CheckBoxOption
      Returns:
      the default value
    • inhibitSave

      public boolean inhibitSave()
      Description copied from class: Option
      Returns whether the option should not be saved. This function can be overridden for options that are otherwise saved, or for options that should not be saved at all.
      Overrides:
      inhibitSave in class Option
      Returns:
      whether the option value should not be saved
    • setPickupMode

      public void setPickupMode(long pickupMode)
      Description copied from class: PickupOption
      Notifies this instance that the pickup mode has changed.
      Specified by:
      setPickupMode in class PickupOption
      Parameters:
      pickupMode - the new pickup mode