public interface EquipmentInventory extends OrderedInventory, CarriedInventory<ArmorEquipable>
Carrier
s
that can carry equipment.Modifier and Type | Method and Description |
---|---|
Optional<Slot> |
getSlot(EquipmentSlotType equipmentType)
Get the
Slot for the specified equipment type. |
Optional<Slot> |
getSlot(EquipmentType equipmentType)
Get the
Slot for the specified equipment type. |
Optional<ItemStack> |
peek(EquipmentSlotType equipmentType)
Get without removing the stack for the specified equipment type in this
Inventory.
|
Optional<ItemStack> |
peek(EquipmentSlotType equipmentType,
int limit)
Get without removing the items from the stack for the specified equipment
type in this Inventory.
|
Optional<ItemStack> |
peek(EquipmentType equipmentType)
Get without removing the stack for the specified equipment type in this
Inventory.
|
Optional<ItemStack> |
peek(EquipmentType equipmentType,
int limit)
Get without removing the items from the stack for the specified equipment
type in this Inventory.
|
Optional<ItemStack> |
poll(EquipmentSlotType equipmentType)
Get and remove the stack for the specified equipment type in this
Inventory.
|
Optional<ItemStack> |
poll(EquipmentSlotType equipmentType,
int limit)
Get and remove the items from the stack for the specified equipment type
in this Inventory.
|
Optional<ItemStack> |
poll(EquipmentType equipmentType)
Get and remove the stack for the specified equipment type in this
Inventory.
|
Optional<ItemStack> |
poll(EquipmentType equipmentType,
int limit)
Get and remove the items from the stack for the specified equipment type
in this Inventory.
|
InventoryOperationResult |
set(EquipmentSlotType equipmentType,
ItemStack stack)
Set the item for the specified equipment type.
|
InventoryOperationResult |
set(EquipmentType equipmentType,
ItemStack stack)
Set the item for the specified equipment type.
|
getSlot, peek, peek, poll, poll, set
getCarrier
capacity, clear, contains, contains, first, getMaxStackSize, getProperties, getProperties, getProperty, getProperty, isEmpty, next, offer, parent, peek, peek, poll, poll, query, query, query, query, query, query, query, set, setMaxStackSize, size, slots, totalItems
forEach, iterator, spliterator
Optional<ItemStack> poll(EquipmentSlotType equipmentType)
equipmentType
- Type of equipment slot to query forInventory.poll()
Inventory.poll()
Optional<ItemStack> poll(EquipmentSlotType equipmentType, int limit)
equipmentType
- Type of equipment slot to query forlimit
- item limitInventory.poll()
Inventory.poll()
Optional<ItemStack> poll(EquipmentType equipmentType)
equipmentType
- Type of equipment slot to query forInventory.poll()
Inventory.poll()
Optional<ItemStack> poll(EquipmentType equipmentType, int limit)
equipmentType
- Type of equipment slot to query forlimit
- item limitInventory.poll()
Inventory.poll()
Optional<ItemStack> peek(EquipmentSlotType equipmentType)
equipmentType
- Type of equipment slot to query forInventory.peek()
Inventory.peek()
Optional<ItemStack> peek(EquipmentSlotType equipmentType, int limit)
equipmentType
- Type of equipment slot to query forlimit
- item limitInventory.peek()
Inventory.peek()
Optional<ItemStack> peek(EquipmentType equipmentType)
equipmentType
- Type of equipment slot to query forInventory.peek()
Inventory.peek()
Optional<ItemStack> peek(EquipmentType equipmentType, int limit)
equipmentType
- Type of equipment slot to query forlimit
- item limitInventory.peek()
Inventory.peek()
InventoryOperationResult set(EquipmentSlotType equipmentType, ItemStack stack)
equipmentType
- Type of equipment slot to setstack
- stack to insertInventory.set(org.spongepowered.api.item.inventory.ItemStack)
Inventory.set(ItemStack)
InventoryOperationResult set(EquipmentType equipmentType, ItemStack stack)
equipmentType
- Type of equipment slot to setstack
- stack to insertInventory.set(org.spongepowered.api.item.inventory.ItemStack)
Inventory.set(ItemStack)
Optional<Slot> getSlot(EquipmentSlotType equipmentType)
Slot
for the specified equipment type.equipmentType
- Type of equipment slot to setOptional.empty()
if no matching slotOptional<Slot> getSlot(EquipmentType equipmentType)
Slot
for the specified equipment type.equipmentType
- Type of equipment slot to setOptional.empty()
if no matching slot