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 // vIndex: 76
32 virtual ::ItemStack& use(::ItemStack& instance, ::Player& player) const /*override*/;
33
34 // vIndex: 50
35 virtual bool requiresInteract() const /*override*/;
36
37 // vIndex: 111
38 virtual ::std::string getInteractText(::Player const& player) const /*override*/;
39
40 // vIndex: 89
41 virtual ::std::string buildDescriptionId(::ItemDescriptor const& item, ::CompoundTag const* userData) const
42 /*override*/;
43
44 // vIndex: 52
45 virtual void appendFormattedHovertext(
46 ::ItemStackBase const& stack,
47 ::Level& level,
49 bool const showCategory
50 ) const /*override*/;
51
52 // vIndex: 94
53 virtual bool inventoryTick(::ItemStack&, ::Level& level, ::Actor& owner, int, bool) const /*override*/;
54
55 // vIndex: 39
56 virtual bool isGlint(::ItemStackBase const& stack) const /*override*/;
57
58 // vIndex: 0
59 virtual ~WrittenBookItem() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static ::std::string const& getAuthor(::ItemStackBase const& book);
66
67 MCAPI static ::PageContent getPage(::ItemStackBase const& book, int index);
68
69 MCAPI static int getPageCount(::ItemStackBase const& book);
70
71 MCAPI static ::std::vector<::PageContent> getPages(::ItemStackBase const& book);
72
73 MCAPI static ::std::string const& getTitle(::ItemStackBase const& book);
74 // NOLINTEND
75
76public:
77 // static variables
78 // NOLINTBEGIN
79 MCAPI static int const& MAX_PAGES();
80
81 MCAPI static int const& MAX_PAGE_LENGTH();
82
83 MCAPI static int const& MAX_TITLE_LENGTH();
84
85 MCAPI static ::std::string_view const& TAG_AUTHOR();
86
87 MCAPI static ::std::string_view const& TAG_FILTERED_AUTHOR();
88
89 MCAPI static ::std::string_view const& TAG_FILTERED_TITLE();
90
91 MCAPI static ::std::string_view const& TAG_GENERATION();
92
93 MCAPI static ::std::string_view const& TAG_PAGES();
94
95 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_PHOTO_NAME();
96
97 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_TEXT();
98
99 MCAPI static ::std::string_view const& TAG_PAGE_PHOTO_NAME();
100
101 MCAPI static ::std::string_view const& TAG_PAGE_TEXT();
102
103 MCAPI static ::std::string_view const& TAG_RESOLVED();
104
105 MCAPI static ::std::string_view const& TAG_TITLE();
106
107 MCAPI static ::std::string_view const& TAG_XUID();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI ::ItemStack& $use(::ItemStack& instance, ::Player& player) const;
114
115 MCFOLD bool $requiresInteract() const;
116
117 MCAPI ::std::string $getInteractText(::Player const& player) const;
118
119 MCAPI ::std::string $buildDescriptionId(::ItemDescriptor const& item, ::CompoundTag const* userData) const;
120
121 MCAPI void $appendFormattedHovertext(
122 ::ItemStackBase const& stack,
123 ::Level& level,
125 bool const showCategory
126 ) const;
127
128 MCAPI bool $inventoryTick(::ItemStack&, ::Level& level, ::Actor& owner, int, bool) const;
129
130 MCFOLD bool $isGlint(::ItemStackBase const& stack) const;
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
Definition Actor.h:102
Definition RedactableString.h:10
Definition CompoundTag.h:13
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:34
Definition ItemStack.h:23
Definition Item.h:66
Definition Level.h:243
Definition Player.h:123
Definition WrittenBookItem.h:21
static MCAPI void ** $vftable()
Definition PageContent.h:10