LeviLamina
Loading...
Searching...
No Matches
SignBlockActor.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/SignTextSide.h"
8
9// auto generated forward declare list
10// clang-format off
12class BlockSource;
13class CompoundTag;
14class DataLoadHelper;
15class ILevel;
16class Player;
17class SaveContext;
18class TextObjectRoot;
19struct ActorUniqueID;
20// clang-format on
21
23public:
24 // SignBlockActor inner types declare
25 // clang-format off
26 struct CachedLineData;
27 struct CachedMessageData;
28 class Text;
29 // clang-format on
30
31 // SignBlockActor inner types define
33 public:
34 // member variables
35 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 CachedLineData& operator=(CachedLineData const&);
44
45 public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI CachedLineData();
49
51
52 MCAPI ~CachedLineData();
53 // NOLINTEND
54
55 public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCFOLD void* $ctor();
59
60 MCFOLD void* $ctor(::SignBlockActor::CachedLineData&&);
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCFOLD void $dtor();
67 // NOLINTEND
68 };
69
71 public:
72 // member variables
73 // NOLINTBEGIN
81 // NOLINTEND
82
83 public:
84 // prevent constructor by default
85 CachedMessageData& operator=(CachedMessageData const&);
88 };
89
90 class Text {
91 public:
92 // Text inner types define
93 enum class LoadMode : int {
94 TextOnly = 0,
95 AllData = 1,
96 };
97
98 public:
99 // member variables
100 // NOLINTBEGIN
111 // NOLINTEND
112
113 public:
114 // prevent constructor by default
115 Text& operator=(Text const&);
116 Text(Text const&);
117
118 public:
119 // member functions
120 // NOLINTBEGIN
121 MCAPI Text();
122
124
125 MCAPI void _parseOldVersionText(::CompoundTag const& tag);
126
127 MCAPI void _parseOtherAttributes(::CompoundTag const& tag);
128
129 MCAPI void _parseText(::CompoundTag const& tag);
130
131 MCAPI ::std::string const& getMessage() const;
132
133 MCAPI void load(::CompoundTag const& tag, ::SignBlockActor::Text::LoadMode load);
134
135 MCAPI bool save(::CompoundTag& tag) const;
136
137 MCAPI void setEditedBy(::std::string const& playerXuid);
138
139 MCAPI void setMessage(::TextObjectRoot message);
140
141 MCAPI void setMessage(::std::string message);
142
143 MCAPI ~Text();
144 // NOLINTEND
145
146 public:
147 // static variables
148 // NOLINTBEGIN
149 MCAPI static ::std::add_lvalue_reference_t<char const[]> SIGN_PERSIST_FORMATTING_TAG();
150 // NOLINTEND
151
152 public:
153 // constructor thunks
154 // NOLINTBEGIN
155 MCAPI void* $ctor();
156
157 MCAPI void* $ctor(::SignBlockActor::Text&&);
158 // NOLINTEND
159
160 public:
161 // destructor thunk
162 // NOLINTBEGIN
163 MCAPI void $dtor();
164 // NOLINTEND
165 };
166
167public:
168 // member variables
169 // NOLINTBEGIN
170 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SignBlockActor::Text>> mTextFront;
171 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SignBlockActor::Text>> mTextBack;
172 ::ll::TypedStorage<1, 1, bool> mIsWaxed;
173 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLockedForEditingBy;
174 ::ll::TypedStorage<1, 1, bool> mIsRemoteProfanityFilterEnabled;
175 ::ll::TypedStorage<1, 1, bool> mIsLocalProfanityFilterEnabled;
176 // NOLINTEND
177
178public:
179 // virtual functions
180 // NOLINTBEGIN
181 // vIndex: 0
182 virtual ~SignBlockActor() /*override*/ = default;
183
184 // vIndex: 2
185 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
186
187 // vIndex: 1
188 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
189
190 // vIndex: 8
191 virtual void onChanged(::BlockSource& region) /*override*/;
192
193 // vIndex: 19
194 virtual float getShadowRadius(::BlockSource& region) const /*override*/;
195
196 // vIndex: 28
197 virtual ::std::string getImmersiveReaderText(::BlockSource& region) /*override*/;
198
199 // vIndex: 7
200 virtual void tick(::BlockSource& region) /*override*/;
201
202 // vIndex: 38
203 virtual ::std::vector<::std::string> getUgcStrings(::CompoundTag const& tag) const /*override*/;
204
205 // vIndex: 39
206 virtual ::std::vector<::std::string> getFilteredUgcStrings(::CompoundTag const& tag) const /*override*/;
207
208 // vIndex: 40
209 virtual void setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
210
211 // vIndex: 41
212 virtual void setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
213
214 // vIndex: 43
215 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
216
217 // vIndex: 44
218 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
219
220 // vIndex: 45
221 virtual bool _playerCanUpdate(::Player const& fromPlayer) const /*override*/;
222 // NOLINTEND
223
224public:
225 // member functions
226 // NOLINTBEGIN
227 MCAPI void _updateTextFromClient(::CompoundTag const& data, ::BlockSource const& region);
228
229 MCAPI ::SignTextSide getSideFacingPlayer(::Player const& player) const;
230
231 MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::std::string message, ::std::string ownerID);
232
233 MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::TextObjectRoot message, ::std::string ownerID);
234 // NOLINTEND
235
236public:
237 // destructor thunk
238 // NOLINTBEGIN
239
240 // NOLINTEND
241
242public:
243 // virtual function thunks
244 // NOLINTBEGIN
245 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
246
247 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
248
249 MCFOLD void $onChanged(::BlockSource& region);
250
251 MCAPI float $getShadowRadius(::BlockSource& region) const;
252
253 MCAPI ::std::string $getImmersiveReaderText(::BlockSource& region);
254
255 MCAPI void $tick(::BlockSource& region);
256
257 MCAPI ::std::vector<::std::string> $getUgcStrings(::CompoundTag const& tag) const;
258
259 MCAPI ::std::vector<::std::string> $getFilteredUgcStrings(::CompoundTag const& tag) const;
260
261 MCAPI void $setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
262
263 MCAPI void $setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
264
265 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
266
267 MCAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
268
269 MCAPI bool $_playerCanUpdate(::Player const& fromPlayer) const;
270 // NOLINTEND
271
272public:
273 // vftables
274 // NOLINTBEGIN
275 MCAPI static void** $vftable();
276 // NOLINTEND
277};
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:203
Definition Player.h:119
Definition SaveContext.h:5
Definition SignBlockActor.h:90
Definition SignBlockActor.h:22
Definition TextObjectRoot.h:14
Definition ActorUniqueID.h:5
Definition SignBlockActor.h:32
Definition SignBlockActor.h:70
Definition Alias.h:14