public class Pickup
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
PU_EVERYTHING
Pickup mode: everything.
|
static long |
PU_NEW_MODE
Pickup mode: enable newpickup mode.
|
static long |
PU_NOTHING
Pickup mode: nothing.
|
| Constructor and Description |
|---|
Pickup(@NotNull CommandQueue commandQueue,
@NotNull OptionManager optionManager)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPickupMode()
Returns the pickup mode.
|
void |
setPickupModeNewMode(long pickupMode,
boolean set)
Sets or unsets the pickup mode in
PU_NEW_MODE. |
void |
setPickupModeOldMode(long pickupMode)
Sets or unsets the pickup mode without
PU_NEW_MODE. |
void |
updatePickupMode(long pickupMode,
boolean sendToServer)
Sets the pickup mode.
|
public static final long PU_NOTHING
public static final long PU_EVERYTHING
public static final long PU_NEW_MODE
public Pickup(@NotNull
@NotNull CommandQueue commandQueue,
@NotNull
@NotNull OptionManager optionManager)
throws OptionException
commandQueue - the command queue for sending pickup commandsoptionManager - the option manager to useOptionException - if an option cannot be registeredpublic void updatePickupMode(long pickupMode,
boolean sendToServer)
pickupMode - the pickup modesendToServer - whether a /pickup command should be sent to the
serverpublic long getPickupMode()
public void setPickupModeOldMode(long pickupMode)
PU_NEW_MODE.pickupMode - the pickup mode to setpublic void setPickupModeNewMode(long pickupMode,
boolean set)
PU_NEW_MODE.pickupMode - the pickup mode(s) to affectset - true=set, false=unset