Package org.bukkit.inventory.view
Interface LecternView
- All Superinterfaces:
InventoryView
An instance of
InventoryView
which provides extra methods related to
lectern view data.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.InventoryView
InventoryView.Property
-
Field Summary
Fields inherited from interface org.bukkit.inventory.InventoryView
OUTSIDE
-
Method Summary
Modifier and TypeMethodDescriptionint
getPage()
Gets the page that the LecternView is on.@NotNull LecternInventory
Get the upper inventory involved in this transaction.void
setPage
(int page) Sets the page of the lectern book.Methods inherited from interface org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getMenuType, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, open, setCursor, setItem, setProperty, setTitle, title
-
Method Details
-
getTopInventory
Description copied from interface:InventoryView
Get the upper inventory involved in this transaction.- Specified by:
getTopInventory
in interfaceInventoryView
- Returns:
- the inventory
-
getPage
int getPage()Gets the page that the LecternView is on.- Returns:
- The page the book is on
-
setPage
void setPage(int page) Sets the page of the lectern book.- Parameters:
page
- the lectern book page
-