LeviLamina
Loading...
Searching...
No Matches
ChalkboardBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/BlockActor.h"
7#include "mc/world/level/block/actor/ChalkboardSize.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
18class ItemStack;
19class SaveContext;
20class TextObjectRoot;
21struct ActorUniqueID;
22// clang-format on
23
25public:
26 // ChalkboardBlockActor inner types declare
27 // clang-format off
28 struct CachedLineData;
29 struct CachedMessageData;
30 struct ChalkboardFinder;
31 // clang-format on
32
33 // ChalkboardBlockActor inner types define
35 public:
36 // member variables
37 // NOLINTBEGIN
40 // NOLINTEND
41
42 public:
43 // prevent constructor by default
44 CachedLineData& operator=(CachedLineData const&);
46
47 public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI CachedLineData();
51
52 MCAPI ~CachedLineData();
53 // NOLINTEND
54
55 public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCFOLD void* $ctor();
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCFOLD void $dtor();
65 // NOLINTEND
66 };
67
69 public:
70 // member variables
71 // NOLINTBEGIN
77 // NOLINTEND
78
79 public:
80 // prevent constructor by default
81 CachedMessageData& operator=(CachedMessageData const&);
84 };
85
87 public:
88 // member variables
89 // NOLINTBEGIN
92 // NOLINTEND
93
94 public:
95 // prevent constructor by default
96 ChalkboardFinder& operator=(ChalkboardFinder const&);
99
100 public:
101 // member functions
102 // NOLINTBEGIN
103 MCAPI bool confirmedBroken(::ChalkboardBlockActor& compare, ::BlockSource& region) const;
104 // NOLINTEND
105 };
106
107public:
108 // member variables
109 // NOLINTBEGIN
110 ::ll::TypedStorage<8, 32, ::std::string> mText;
111 ::ll::TypedStorage<8, 32, ::std::string> mTextObjectString;
112 ::ll::TypedStorage<8, 32, ::TextObjectRoot> mTextObjectMessage;
113 ::ll::TypedStorage<8, 696, ::ChalkboardBlockActor::CachedMessageData> mCachedMessage;
114 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mSiblings;
115 ::ll::TypedStorage<1, 1, bool> mShouldPersistFormatting;
116 ::ll::TypedStorage<4, 12, ::BlockPos> mBasePos;
117 ::ll::TypedStorage<1, 1, ::ChalkboardSize> mSize;
118 ::ll::TypedStorage<1, 1, bool> mIsOnGround;
119 ::ll::TypedStorage<1, 1, bool> mIsLocked;
120 ::ll::TypedStorage<1, 1, bool> mInitialized;
121 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mOwner;
122 // NOLINTEND
123
124public:
125 // virtual functions
126 // NOLINTBEGIN
127 // vIndex: 0
128 virtual ~ChalkboardBlockActor() /*override*/;
129
130 // vIndex: 2
131 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
132
133 // vIndex: 1
134 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
135
136 // vIndex: 8
137 virtual void onChanged(::BlockSource& region) /*override*/;
138
139 // vIndex: 7
140 virtual void tick(::BlockSource& region) /*override*/;
141
142 // vIndex: 28
143 virtual ::std::string getImmersiveReaderText(::BlockSource& region) /*override*/;
144
145 // vIndex: 38
146 virtual ::std::vector<::std::string> getUgcStrings(::CompoundTag const& tag) const /*override*/;
147
148 // vIndex: 40
149 virtual void setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
150
151 // vIndex: 43
152 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
153
154 // vIndex: 44
155 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
156 // NOLINTEND
157
158public:
159 // member functions
160 // NOLINTBEGIN
161 MCAPI explicit ChalkboardBlockActor(::BlockPos const& pos);
162
163 MCAPI ::std::vector<::BlockPos> const& _getSiblings(::BlockSource& region);
164
165 MCAPI ::std::string const& getText() const;
166
167 MCAPI void setText(::std::string const& text);
168
169 MCAPI void validate(::BlockSource& region);
170 // NOLINTEND
171
172public:
173 // static functions
174 // NOLINTBEGIN
175 MCAPI static ::ChalkboardBlockActor::ChalkboardFinder _findChalkboard(::BlockSource& region, ::BlockPos const& pos);
176
177 MCAPI static ::std::vector<::BlockPos>
178 calculateAllBlocks(::BlockPos const& basePos, ::ChalkboardSize boardSize, int dir);
179
180 MCAPI static bool canCreateChalkboard(
181 ::Actor* creator,
182 ::BlockSource& region,
183 ::BlockPos const& basePos,
184 ::ChalkboardSize boardSize,
185 uchar face,
186 int dir,
187 ::std::vector<::BlockPos>& occupiedBlocks,
188 ::ItemStack const& instance,
189 bool generateParticles
190 );
191
192 MCAPI static ::ChalkboardBlockActor* convertFromEntity(::BlockSource& region, ::CompoundTag const& tag);
193
194 MCAPI static ::ChalkboardBlockActor* createChalkboard(
195 ::Actor* creator,
196 ::BlockSource& region,
197 ::BlockPos const& basePos,
198 ::ChalkboardSize boardSize,
199 uchar face,
200 int dir,
201 bool isOnGround,
202 ::ItemStack const& instance,
203 ::std::string text
204 );
205 // NOLINTEND
206
207public:
208 // constructor thunks
209 // NOLINTBEGIN
210 MCAPI void* $ctor(::BlockPos const& pos);
211 // NOLINTEND
212
213public:
214 // destructor thunk
215 // NOLINTBEGIN
216 MCAPI void $dtor();
217 // NOLINTEND
218
219public:
220 // virtual function thunks
221 // NOLINTBEGIN
222 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
223
224 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
225
226 MCAPI void $onChanged(::BlockSource& region);
227
228 MCAPI void $tick(::BlockSource& region);
229
230 MCAPI ::std::string $getImmersiveReaderText(::BlockSource& region);
231
232 MCAPI ::std::vector<::std::string> $getUgcStrings(::CompoundTag const& tag) const;
233
234 MCAPI void $setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
235
236 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
237
238 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
239 // NOLINTEND
240
241public:
242 // vftables
243 // NOLINTBEGIN
244 MCAPI static void** $vftable();
245 // NOLINTEND
246};
Definition Actor.h:104
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition ChalkboardBlockActor.h:24
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:203
Definition ItemStack.h:25
Definition SaveContext.h:5
Definition TextObjectRoot.h:14
Definition ActorUniqueID.h:5
Definition ChalkboardBlockActor.h:34
Definition ChalkboardBlockActor.h:68
Definition ChalkboardBlockActor.h:86
Definition Alias.h:14