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/legacy/ActorUniqueID.h"
7#include "mc/textobject/TextObjectRoot.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/level/block/actor/BlockActor.h"
10#include "mc/world/level/block/actor/ChalkboardSize.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
16class BlockSource;
17class CompoundTag;
18class DataLoadHelper;
19class ILevel;
20class ItemStack;
21class SaveContext;
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
51
53 // NOLINTEND
54
55 public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor();
59 // NOLINTEND
60
61 public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI 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 MCNAPI 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 // prevent constructor by default
127
128public:
129 // virtual functions
130 // NOLINTBEGIN
131 // vIndex: 0
132 virtual ~ChalkboardBlockActor() /*override*/;
133
134 // vIndex: 2
135 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
136
137 // vIndex: 1
138 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
139
140 // vIndex: 9
141 virtual void onChanged(::BlockSource& region) /*override*/;
142
143 // vIndex: 8
144 virtual void tick(::BlockSource& region) /*override*/;
145
146 // vIndex: 29
147 virtual ::std::string getImmersiveReaderText(::BlockSource& region) /*override*/;
148
149 // vIndex: 39
150 virtual ::std::vector<::std::string> getUgcStrings(::CompoundTag const& tag) const /*override*/;
151
152 // vIndex: 41
153 virtual void setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
154
155 // vIndex: 44
156 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
157
158 // vIndex: 45
159 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
160 // NOLINTEND
161
162public:
163 // member functions
164 // NOLINTBEGIN
165 MCNAPI explicit ChalkboardBlockActor(::BlockPos const& pos);
166
167 MCNAPI ::std::vector<::BlockPos> const& _getSiblings(::BlockSource& region);
168
169 MCNAPI ::std::string const& getText() const;
170
171 MCNAPI void setText(::std::string const& text);
172
173 MCNAPI void validate(::BlockSource& region);
174 // NOLINTEND
175
176public:
177 // static functions
178 // NOLINTBEGIN
179 MCNAPI static ::ChalkboardBlockActor::ChalkboardFinder
181
182 MCNAPI static ::std::vector<::BlockPos>
183 calculateAllBlocks(::BlockPos const& basePos, ::ChalkboardSize boardSize, int dir);
184
185 MCNAPI static bool canCreateChalkboard(
186 ::Actor* creator,
187 ::BlockSource& region,
188 ::BlockPos const& basePos,
189 ::ChalkboardSize boardSize,
190 uchar face,
191 int dir,
192 ::std::vector<::BlockPos>& occupiedBlocks,
193 ::ItemStack const& instance,
194 bool generateParticles
195 );
196
197 MCNAPI static ::ChalkboardBlockActor* convertFromEntity(::BlockSource& region, ::CompoundTag const& tag);
198
199 MCNAPI static ::ChalkboardBlockActor* createChalkboard(
200 ::Actor* creator,
201 ::BlockSource& region,
202 ::BlockPos const& basePos,
203 ::ChalkboardSize boardSize,
204 uchar face,
205 int dir,
206 bool isOnGround,
207 ::ItemStack const& instance,
208 ::std::string text
209 );
210 // NOLINTEND
211
212public:
213 // constructor thunks
214 // NOLINTBEGIN
215 MCNAPI void* $ctor(::BlockPos const& pos);
216 // NOLINTEND
217
218public:
219 // destructor thunk
220 // NOLINTBEGIN
221 MCNAPI void $dtor();
222 // NOLINTEND
223
224public:
225 // virtual function thunks
226 // NOLINTBEGIN
227 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
228
229 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
230
231 MCNAPI void $onChanged(::BlockSource& region);
232
233 MCNAPI void $tick(::BlockSource& region);
234
235 MCNAPI ::std::string $getImmersiveReaderText(::BlockSource& region);
236
237 MCNAPI ::std::vector<::std::string> $getUgcStrings(::CompoundTag const& tag) const;
238
239 MCNAPI void $setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
240
241 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
242
243 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
244 // NOLINTEND
245
246public:
247 // vftables
248 // NOLINTBEGIN
249 MCNAPI static void** $vftable();
250 // NOLINTEND
251};
Definition Actor.h:103
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition ChalkboardBlockActor.h:24
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MCAPI void $dtor()
MCAPI void setText(::std::string const &text)
MCAPI void $tick(::BlockSource &region)
MCAPI void $onChanged(::BlockSource &region)
MCAPI ChalkboardBlockActor(::BlockPos const &pos)
MCAPI ::std::vector<::std::string > $getUgcStrings(::CompoundTag const &tag) const
MCAPI void $setUgcStrings(::CompoundTag &tag, ::std::vector<::std::string > const &list) const
MCAPI::std::string const & getText() const
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
static MCAPI ::ChalkboardBlockActor * convertFromEntity(::BlockSource &region, ::CompoundTag const &tag)
static MCAPI ::ChalkboardBlockActor::ChalkboardFinder _findChalkboard(::BlockSource &region, ::BlockPos const &pos)
static MCAPI ::ChalkboardBlockActor * createChalkboard(::Actor *creator, ::BlockSource &region, ::BlockPos const &basePos, ::ChalkboardSize boardSize, uchar face, int dir, bool isOnGround, ::ItemStack const &instance, ::std::string text)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void validate(::BlockSource &region)
MCAPI::std::string $getImmersiveReaderText(::BlockSource &region)
static MCAPI bool canCreateChalkboard(::Actor *creator, ::BlockSource &region, ::BlockPos const &basePos, ::ChalkboardSize boardSize, uchar face, int dir, ::std::vector<::BlockPos > &occupiedBlocks, ::ItemStack const &instance, bool generateParticles)
static MCAPI void ** $vftable()
MCAPI ::std::vector<::BlockPos > const & _getSiblings(::BlockSource &region)
static MCAPI ::std::vector<::BlockPos > calculateAllBlocks(::BlockPos const &basePos, ::ChalkboardSize boardSize, int dir)
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:205
Definition ItemStack.h:25
Definition SaveContext.h:5
Definition ChalkboardBlockActor.h:34
Definition ChalkboardBlockActor.h:68
Definition ChalkboardBlockActor.h:86
MCAPI bool confirmedBroken(::ChalkboardBlockActor &compare, ::BlockSource &region) const
Definition Alias.h:14