3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/item/HandSlot.h"
7#include "mc/world/item/Item.h"
26 ::ll::TypedStorage<1, 1, bool> mShouldFilterText;
32 virtual ::ItemStack& use(
::ItemStack& instance,
::Player& player, ::HandSlot handSlot)
const ;
34 virtual bool requiresInteract()
const ;
36 virtual ::std::string getInteractText(
::Player const& player)
const ;
41 virtual void appendFormattedHovertext(
45 bool const showCategory
48 virtual ::Bedrock::Safety::RedactableString getRedactedCustomName(
::ItemStackBase const& stack)
const ;
63 MCNAPI static ::std::optional<::std::string> getFilteredAuthor(
::ItemStack const& book);
65 MCNAPI static ::std::optional<::std::string> getFilteredTitle(
::ItemStack const& book);
73 MCNAPI static ::std::vector<int> getPageCountByType(
::ItemStack const& book);
92 MCNAPI static ::std::string_view
const&
TAG_PAGES();
105 MCNAPI static ::std::string_view
const& TAG_XUID();
124 bool const showCategory
Definition RedactableString.h:10
Definition CompoundTag.h:18
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition WrittenBookItem.h:22
static MCAPI ::std::string_view const & TAG_PAGE_TEXT()
static MCAPI ::std::string_view const & TAG_AUTHOR()
static MCAPI ::std::string const & getTitle(::ItemStackBase const &book)
static MCAPI ::PageContent getPage(::ItemStackBase const &book, int index)
static MCAPI ::std::string_view const & TAG_PAGES()
static MCAPI ::std::string_view const & TAG_PAGE_FILTERED_TEXT()
static MCAPI ::std::string_view const & TAG_GENERATION()
static MCAPI ::std::string_view const & TAG_PAGE_PHOTO_NAME()
MCAPI bool $requiresInteract() const
static MCAPI ::std::string_view const & TAG_FILTERED_AUTHOR()
static MCAPI ::std::string const & getAuthor(::ItemStackBase const &book)
MCAPI::ItemStack & $use(::ItemStack &instance, ::Player &player, ::HandSlot handSlot) const
MCAPI void $appendFormattedHovertext(::ItemStackBase const &stack, ::Level &level, ::Bedrock::Safety::RedactableString &hovertext, bool const showCategory) const
MCAPI::Bedrock::Safety::RedactableString $getRedactedCustomName(::ItemStackBase const &stack) const
static MCAPI int getPageCount(::ItemStackBase const &book)
static MCAPI ::std::string_view const & TAG_TITLE()
static MCAPI ::std::vector<::PageContent > getPages(::ItemStackBase const &book)
MCAPI bool $hasCustomHoverName(::ItemStackBase const &stack) const
MCAPI bool $inventoryTick(::ItemStack &, ::Level &level, ::Actor &owner, int, bool) const
MCAPI bool $isGlint(::ItemStackBase const &stack) const
MCAPI::std::string $buildDescriptionId(::ItemDescriptor const &item, ::CompoundTag const *userData) const
MCAPI::std::string $getInteractText(::Player const &player) const
static MCAPI ::std::string_view const & TAG_PAGE_FILTERED_PHOTO_NAME()
static MCAPI ::std::string_view const & TAG_FILTERED_TITLE()
Definition PageContent.h:10