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: 109
38 virtual ::std::string getInteractText(::Player const& player) const /*override*/;
39
40 // vIndex: 87
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: 92
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 int getPageCount(::ItemStack const& book);
66
67 MCAPI static ::std::vector<::PageContent> getPages(::ItemStack const& book);
68 // NOLINTEND
69
70public:
71 // static variables
72 // NOLINTBEGIN
73 MCAPI static int const& MAX_PAGES();
74
75 MCAPI static int const& MAX_PAGE_LENGTH();
76
77 MCAPI static int const& MAX_TITLE_LENGTH();
78
79 MCAPI static ::std::string_view const& TAG_AUTHOR();
80
81 MCAPI static ::std::string_view const& TAG_FILTERED_AUTHOR();
82
83 MCAPI static ::std::string_view const& TAG_FILTERED_TITLE();
84
85 MCAPI static ::std::string_view const& TAG_GENERATION();
86
87 MCAPI static ::std::string_view const& TAG_PAGES();
88
89 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_PHOTO_NAME();
90
91 MCAPI static ::std::string_view const& TAG_PAGE_FILTERED_TEXT();
92
93 MCAPI static ::std::string_view const& TAG_PAGE_PHOTO_NAME();
94
95 MCAPI static ::std::string_view const& TAG_PAGE_TEXT();
96
97 MCAPI static ::std::string_view const& TAG_RESOLVED();
98
99 MCAPI static ::std::string_view const& TAG_TITLE();
100
101 MCAPI static ::std::string_view const& TAG_XUID();
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107
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 MCAPI static void** $vftable();
137 // NOLINTEND
138};
Definition Actor.h:104
Definition RedactableString.h:10
Definition CompoundTag.h:13
Definition ItemDescriptor.h:22
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition Item.h:65
Definition Level.h:234
Definition Player.h:119
Definition WrittenBookItem.h:21
Definition PageContent.h:10