Class EquipmentLoadout
java.lang.Object
org.rspeer.game.config.item.loadout.EquipmentLoadout
- All Implemented Interfaces:
Cloneable, Iterable<ItemEntry>, InventoryLoadout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds anItemEntryto the loadoutclone()voidequip()get(Equipment.Slot slot) Deprecated, for removal: This API element is subject to removal in a future version.getName()booleanisWorn()Deprecated, for removal: This API element is subject to removal in a future version.iterator()booleanremove(Equipment.Slot slot) voidsetEntries(Map<String, ItemEntry> entries) voidsetOutOfItemListener(Consumer<ItemEntry> outOfItemListener) toBackpackLoadout(String name) booleanwithdraw()static EquipmentLoadoutMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InventoryLoadout
applyProvidedSetup, getExcessBackpackEntries, getExcessEntries, getExcessEquipmentEntries, getExcessItems, getInvalidBackpackItems, getInvalidEquipmentItems, getInvalidItems, getInvalidItems, getIrrelevantItems, getMissing, getMissingBackpackEntries, getMissingBackpackEntries, getMissingEntries, getMissingEntries, getMissingEntries, getMissingEntries, getMissingEquipmentEntries, getMissingEquipmentEntries, getValidBackpackResults, getValidEquipmentResults, getValidResults, isBackpackValid, isBackpackValid, isBagged, isBagged, isEquipmentValid, isEquipmentValid, isInventoryValid, isInventoryValidMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
EquipmentLoadout
-
-
Method Details
-
worn
-
withdraw
public boolean withdraw()- Specified by:
withdrawin interfaceInventoryLoadout
-
setEntries
-
isWorn
Deprecated, for removal: This API element is subject to removal in a future version.UseInventoryLoadout.isEquipmentValid()instead.- Returns:
trueif all entries are currently equipped. IfItemEntry.isOptional()is true, it ignores validation for that item
-
getBagged
Deprecated, for removal: This API element is subject to removal in a future version.UseInventoryLoadout.getValidBackpackResults()instead.- Returns:
- A
Listcontaining items from this loadout that are in the backpack
-
equip
public void equip()- See Also:
-
toBackpackLoadout
-
toBackpackLoadout
-
get
-
remove
-
getName
- Specified by:
getNamein interfaceInventoryLoadout- Returns:
- The name of this loadout
-
get
- Specified by:
getin interfaceInventoryLoadout- Returns:
- An
ItemEntrywith the given key
-
add
Description copied from interface:InventoryLoadoutAdds anItemEntryto the loadout- Specified by:
addin interfaceInventoryLoadout- Returns:
trueif an item was successfully added to the loadout
-
remove
- Specified by:
removein interfaceInventoryLoadout- Returns:
- The removed entry, or null if no ItemEntry matching the key was present
-
getOutOfItemListener
- Specified by:
getOutOfItemListenerin interfaceInventoryLoadout
-
setOutOfItemListener
- Specified by:
setOutOfItemListenerin interfaceInventoryLoadout
-
clone
- Specified by:
clonein interfaceInventoryLoadout
-
clone
- Specified by:
clonein interfaceInventoryLoadout
-
iterator
-