Package net.storm.api.items
Enum Class WithdrawMode
- All Implemented Interfaces:
Serializable,Comparable<WithdrawMode>,Constable
Represents the withdrawal modes available when withdrawing items from the bank.
This enum defines how items should be withdrawn from the bank, specifically whether items should be withdrawn as notes or as regular items.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WithdrawModeReturns the enum constant of this class with the specified name.static WithdrawMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTED
Withdraw items in noted form.Noted items stack in the inventory regardless of whether the item normally stacks. This is useful for withdrawing large quantities of items. Note that not all items can be noted.
-
ITEM
Withdraw items in their regular (un-noted) form.Items will be withdrawn in their standard form. Non-stackable items will occupy one inventory slot each.
-
DEFAULT
Use the bank's current default withdrawal mode.The withdrawal mode will match whatever is currently selected in the bank interface (either noted or un-noted).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-