Modifier and Type | Method | Description |
---|---|---|
default @Nullable ItemStack |
getBook() |
Gets the lectern's held book.
|
@Nullable Lectern |
getHolder() |
Gets the block or entity belonging to the open inventory
|
default void |
setBook(@Nullable ItemStack book) |
Sets the lectern's held book.
|
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, iterator, iterator, remove, remove, removeItem, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
@Nullable @Nullable Lectern getHolder()
Inventory
@Nullable default @Nullable ItemStack getBook()
default void setBook(@Nullable @Nullable ItemStack book)
book
- the new bookCopyright © 2020. All rights reserved.