Interface LecternInventory

All Superinterfaces:
Inventory, Iterable<ItemStack>

public interface LecternInventory extends Inventory
Interface to the inventory of a Lectern.
  • Method Details

    • getHolder

      @Nullable Lectern 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.
    • getBook

      @Nullable default ItemStack getBook()
      Gets the lectern's held book.
      Returns:
      book set in the lectern
    • setBook

      default void setBook(@Nullable ItemStack book)
      Sets the lectern's held book.
      Parameters:
      book - the new book