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
An Inventory which is owned or otherwise carried by a Carrier.
  • Method Details

    • carrier

      Optional<C> carrier()
      Returns the Carrier of this Inventory. It can be an entity, block, or other object.
      Returns:
      This inventory's carrier