3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/item/HandSlot.h"
7#include "mc/world/item/Item.h"
22 virtual ::ItemStack& use(
::ItemStack& instance,
::Player& player, ::HandSlot handSlot)
const ;
24 virtual bool requiresInteract()
const ;
26 virtual ::std::string getInteractText(
::Player const& player)
const ;
41 ::std::optional<::std::string> filteredTitle,
43 ::std::optional<::std::string> filteredAuthor,
58 ::std::optional<::std::string> filteredTitle,
60 ::std::optional<::std::string> filteredAuthor,
Definition CompoundTag.h:18
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition WritableBookItem.h:18
static MCAPI void addPageAt(::ItemStack &book, int index, ::PageContent const &page)
static MCAPI void _replacePage(::ItemStackBase &book, int index, ::PageContent const &page)
static MCAPI void signBook(::ItemStack &book, ::std::string title, ::std::optional<::std::string > filteredTitle, ::std::string author, ::std::optional<::std::string > filteredAuthor, ::std::string xuid)
static MCAPI void replacePage(::ItemStack &book, int index, ::PageContent const &page)
static MCAPI ::PageContent _deletePage(::ItemStackBase &book, int index)
static MCAPI ::PageContent deletePage(::ItemStack &book, int index)
static MCAPI void _addPageAt(::ItemStackBase &book, int index, ::PageContent const &page)
MCAPI::ItemStack & $use(::ItemStack &instance, ::Player &player, ::HandSlot handSlot) const
static MCAPI void swapPages(::ItemStack &book, int page1, int page2)
static MCAPI void _signBookUserData(::CompoundTag &userData, ::std::string title, ::std::optional<::std::string > filteredTitle, ::std::string author, ::std::optional<::std::string > filteredAuthor, ::std::string xuid)
MCAPI::std::string $getInteractText(::Player const &player) const
MCAPI bool $requiresInteract() const
static MCAPI void createUserDataIfEmpty(::ItemStackBase &book)
Definition PageContent.h:10