Interface WrittenBookDataHolder
- All Known Implementing Classes:
LecternInfo
,WrittenBookInfo
public interface WrittenBookDataHolder
Something that can store book data, a book, and has a callback for when the page changes from clicking a style in
the book.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
getBook()
getData()
void
onPageChangeStyleClick
(int newPage) Run when the page changes from a style click.
-
Method Details
-
getData
ClientBookData getData()- Returns:
- The book data this object is holding.
-
getBook
net.minecraft.world.item.ItemStack getBook()- Returns:
- The book this object is holding.
-
onPageChangeStyleClick
void onPageChangeStyleClick(int newPage) Run when the page changes from a style click.- Parameters:
newPage
- The page being changed to.
-