Interface DecoratedPotInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface DecoratedPotInventory extends Inventory
Interface to the inventory of a DecoratedPot.
  • Method Details

    • setItem

      void setItem(@Nullable ItemStack item)
      Set the item stack in the decorated pot.
      Parameters:
      item - the new item stack
    • getItem

      @Nullable ItemStack getItem()
      Get the item stack in the decorated pot.
      Returns:
      the current item stack
    • getHolder

      @Nullable DecoratedPot getHolder()
      Description copied from interface: Inventory
      Gets the block or entity belonging to the open inventory
      Specified by:
      getHolder in interface Inventory
      Returns:
      The holder of the inventory; null if it has no holder.