Interface CarriedInventory<C extends Carrier>
-
- Type Parameters:
C- Carrier type
- All Superinterfaces:
Inventory,ValueContainer
- All Known Subinterfaces:
BlockEntityInventory<T>,PlayerInventory,UserInventory
public interface CarriedInventory<C extends Carrier> extends Inventory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.item.inventory.Inventory
Inventory.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<C>carrier()Returns the Carrier of this Inventory.-
Methods inherited from interface org.spongepowered.api.item.inventory.Inventory
asViewable, canFit, capacity, children, clear, contains, contains, containsAny, containsChild, containsInventory, freeCapacity, get, get, hasChildren, intersect, offer, offer, parent, peek, peekAt, poll, poll, pollFrom, pollFrom, query, query, query, query, query, query, root, set, slot, slots, totalQuantity, union
-
-
-
-
Method Detail
-
carrier
java.util.Optional<C> carrier()
Returns the Carrier of this Inventory. It can be an entity, block, or other object.- Returns:
- This inventory's carrier
-
-