Package org.bukkit.inventory
Interface LecternInventory
Interface to the inventory of a Lectern.
-
Method Summary
Methods inherited from interface org.bukkit.inventory.Inventory
addItem, all, all, clear, clear, close, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContents
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getHolder
Description copied from interface:Inventory
Gets the block or entity belonging to the open inventory -
getBook
Gets the lectern's held book.- Returns:
- book set in the lectern
-
setBook
Sets the lectern's held book.- Parameters:
book
- the new book
-