LeviLamina
Loading...
Searching...
No Matches
WrittenBookItem.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/Item.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class CompoundTag;
12class ItemDescriptor;
13class ItemStack;
14class ItemStackBase;
15class Level;
16class Player;
17struct PageContent;
18namespace Bedrock::Safety { class RedactableString; }
19// clang-format on
20
21class WrittenBookItem : public ::Item {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mShouldFilterText;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player) const /*override*/;
32
33 virtual bool requiresInteract() const /*override*/;
34
35 virtual ::std::string getInteractText(::Player const& player) const /*override*/;
36
37 virtual ::std::string buildDescriptionId(::ItemDescriptor const& item, ::CompoundTag const* userData) const
38 /*override*/;
39
40 virtual void appendFormattedHovertext(
41 ::ItemStackBase const& stack,
42 ::Level& level,
44 bool const showCategory
45 ) const /*override*/;
46
47 virtual ::Bedrock::Safety::RedactableString getRedactedCustomName(::ItemStackBase const& stack) const /*override*/;
48
49 virtual bool hasCustomHoverName(::ItemStackBase const& stack) const /*override*/;
50
51 virtual bool inventoryTick(::ItemStack&, ::Level& level, ::Actor& owner, int, bool) const /*override*/;
52
53 virtual bool isGlint(::ItemStackBase const& stack) const /*override*/;
54
55 virtual ~WrittenBookItem() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static ::std::string const& getAuthor(::ItemStackBase const& book);
62
63#ifdef LL_PLAT_C
64 MCAPI static ::std::optional<::std::string> getFilteredAuthor(::ItemStack const& book);
65
66 MCAPI static ::std::optional<::std::string> getFilteredTitle(::ItemStack const& book);
67#endif
68
69 MCAPI static ::PageContent getPage(::ItemStackBase const& book, int index);
70
71 MCAPI static int getPageCount(::ItemStackBase const& book);
72
73#ifdef LL_PLAT_C
74 MCAPI static ::std::vector<int> getPageCountByType(::ItemStack const& book);
75#endif
76
77 MCAPI static ::std::vector<::PageContent> getPages(::ItemStackBase const& book);
78
79 MCAPI static ::std::string const& getTitle(::ItemStackBase const& book);
80
81#ifdef LL_PLAT_C
82 MCAPI static ::std::string const& getXUID(::ItemStackBase const& book);
83#endif
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCAPI static ::std::string_view const& TAG_AUTHOR();
90
91 MCAPI static ::std::string_view const& TAG_FILTERED_AUTHOR();
92
93 MCAPI static ::std::string_view const& TAG_FILTERED_TITLE();
94
95 MCAPI static ::std::string_view const& TAG_GENERATION();
96
97 MCAPI static ::std::string_view const& TAG_PAGES();
98
99 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_PHOTO_NAME();
100
101 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_TEXT();
102
103 MCAPI static ::std::string_view const& TAG_PAGE_PHOTO_NAME();
104
105 MCAPI static ::std::string_view const& TAG_PAGE_TEXT();
106
107 MCAPI static ::std::string_view const& TAG_TITLE();
108
109 MCAPI static ::std::string_view const& TAG_XUID();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
116
117 MCFOLD bool $requiresInteract() const;
118
119 MCAPI ::std::string $getInteractText(::Player const& player) const;
120
121 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& item, ::CompoundTag const* userData) const;
122
123 MCAPI void $appendFormattedHovertext(
124 ::ItemStackBase const& stack,
125 ::Level& level,
127 bool const showCategory
128 ) const;
129
130 MCAPI ::Bedrock::Safety::RedactableString $getRedactedCustomName(::ItemStackBase const& stack) const;
131
132 MCAPI bool $hasCustomHoverName(::ItemStackBase const& stack) const;
133
134 MCAPI bool $inventoryTick(::ItemStack&, ::Level& level, ::Actor& owner, int, bool) const;
135
136 MCFOLD bool $isGlint(::ItemStackBase const& stack) const;
137
138
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCAPI static void** $vftable();
145 // NOLINTEND
146};
Definition Actor.h:106
Definition RedactableString.h:10
Definition CompoundTag.h:23
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition Level.h:250
Definition Player.h:129
Definition WrittenBookItem.h:21
Definition PageContent.h:10