Interface Inventory.Holder

Enclosing class:
Inventory

public static interface Inventory.Holder
Can be implemented by all Inventory holder. Allow others to request if the holder possess items
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Boolean accessor to the Holder's inventory which indicate if it possess the given object
  • Method Details

    • possess

      boolean possess(InventoryItem item)
      Boolean accessor to the Holder's inventory which indicate if it possess the given object
      Parameters:
      item - (InventoryItem): the given object to check, may be null
      Returns:
      (boolean): True if the holder possess the given object