JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
default boolean
default boolean
default boolean
default boolean
default int
int
default boolean
default boolean
default boolean
default void
Field Details
ALL
static final int ALL
See Also:
Method Details
getKey
Returns:
A key used as an identifier/debug info for the item. Should generally be the item name, unless it's fuzzy
getQuantity
int getQuantity ()
Returns:
The quantity of the item to take.
If the quantity is defined as ALL
and the item is stackable,
then in the context of banking, it indicates that the withdraw-all option should be used
and the amount not be validated
See Also:
getMinimumQuantity
default int getMinimumQuantity ()
Returns:
The minimum quantity allowed in this loadout for validation to pass
isStackable
default boolean isStackable ()
Returns:
true
if this item is stackable
isNoted
default boolean isNoted ()
isOptional
default boolean isOptional ()
Returns:
Whether this item is optional in the loadout or not.
If it is marked as optional, any validation/contains/equals checks will ignore it
getEquipmentSlot
Returns:
An Equipment.Slot
if applicable, null otherwise
getSetup
Returns:
The ItemEntrySetup
associated with this entry, or null if no setup is required
setSetup
Parameters:
setup
- Adds a required setup for this entry
contained
default boolean contained (Inventory inv,
boolean strict)
contained
default boolean contained (ItemQuery query,
boolean strict)
Returns:
true
if this ItemEntry is contained in the given inventory