Interface Lectern

All Superinterfaces:
BlockInventoryHolder, BlockState, InventoryHolder, Metadatable, PersistentDataHolder, TileState

public interface Lectern extends TileState, BlockInventoryHolder
Represents a captured state of a lectern.
  • Method Details Link icon

    • getPage Link icon

      int getPage()
      Get the current lectern page.
      Returns:
      current page
    • setPage Link icon

      void setPage(int page)
      Set the current lectern page. If the page is greater than the number of pages of the book currently in the inventory, then behavior is undefined.
      Parameters:
      page - new page
    • getInventory Link icon

      @NotNull Inventory getInventory()
      Description copied from interface: InventoryHolder
      Get the object's inventory.
      Specified by:
      getInventory in interface InventoryHolder
      Returns:
      inventory
      See Also:
    • getSnapshotInventory Link icon

      @NotNull Inventory getSnapshotInventory()
      Returns:
      snapshot inventory
      See Also: