java.lang.Object
com.realtime.crossfire.jxclient.settings.options.Pickup

public class Pickup extends Object
Defines constants for pickup mode.
  • Field Details

    • PU_NOTHING

      public static final long PU_NOTHING
      Pickup mode: nothing.
      See Also:
    • PU_EVERYTHING

      public static final long PU_EVERYTHING
      Pickup mode: everything.
      See Also:
    • PU_NEW_MODE

      public static final long PU_NEW_MODE
      Pickup mode: enable newpickup mode.
      See Also:
  • Constructor Details

    • Pickup

      public Pickup(@NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull OptionManager optionManager) throws OptionException
      Creates a new instance. Registers pickup related options.
      Parameters:
      commandQueue - the command queue for sending pickup commands
      optionManager - the option manager to use
      Throws:
      OptionException - if an option cannot be registered
  • Method Details

    • updatePickupMode

      public void updatePickupMode(long pickupMode, boolean sendToServer)
      Sets the pickup mode.
      Parameters:
      pickupMode - the pickup mode
      sendToServer - whether a /pickup command should be sent to the server
    • getPickupMode

      public long getPickupMode()
      Returns the pickup mode.
      Returns:
      the pickup mode
    • setPickupModeOldMode

      public void setPickupModeOldMode(long pickupMode)
      Sets or unsets the pickup mode without PU_NEW_MODE.
      Parameters:
      pickupMode - the pickup mode to set
    • setPickupModeNewMode

      public void setPickupModeNewMode(long pickupMode, boolean set)
      Sets or unsets the pickup mode in PU_NEW_MODE.
      Parameters:
      pickupMode - the pickup mode(s) to affect
      set - true=set, false=unset