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/deps/core/math/Color.h"
7#include "mc/deps/input/InputMode.h"
8#include "mc/input/NewInteractionModel.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/textobject/TextObjectRoot.h"
11#include "mc/world/level/block/actor/BlockActor.h"
12#include "mc/world/level/block/actor/BlockActorRendererId.h"
13#include "mc/world/level/block/actor/BlockActorType.h"
14#include "mc/world/level/block/actor/SignTextSide.h"
15
16// auto generated forward declare list
17// clang-format off
18class BlockActorDataPacket;
19class BlockPos;
20class BlockSource;
21class CompoundTag;
22class DataLoadHelper;
23class ILevel;
24class Player;
25class SaveContext;
26// clang-format on
27
29public:
30 // SignBlockActor inner types declare
31 // clang-format off
32 struct CachedLineData;
33 struct CachedMessageData;
34 class Text;
35 // clang-format on
36
37 // SignBlockActor inner types define
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<8, 32, ::std::string> text;
43 ::ll::TypedStorage<4, 4, int> lineLength;
44 // NOLINTEND
45
46 public:
47 // prevent constructor by default
48 CachedLineData& operator=(CachedLineData const&);
50
51 public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI CachedLineData();
55
57
58 MCAPI ~CachedLineData();
59 // NOLINTEND
60
61 public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCFOLD void* $ctor();
65
66 MCAPI void* $ctor(::SignBlockActor::CachedLineData&&);
67 // NOLINTEND
68
69 public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCFOLD void $dtor();
73 // NOLINTEND
74 };
75
77 public:
78 // member variables
79 // NOLINTBEGIN
80 ::ll::TypedStorage<8, 160, ::SignBlockActor::CachedLineData[4]> lineData;
81 ::ll::TypedStorage<4, 4, uint> numLines;
82 ::ll::TypedStorage<8, 32, ::std::string> filteredMessage;
83 ::ll::TypedStorage<8, 8, void const*> cachedFontCompare;
84 ::ll::TypedStorage<1, 1, bool> dirty;
85 ::ll::TypedStorage<4, 4, ::InputMode> inputMode;
86 ::ll::TypedStorage<4, 4, ::NewInteractionModel> interactionModel;
87 // NOLINTEND
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
101 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
102 ::ll::TypedStorage<8, 32, ::std::string> mFilteredMessage;
103 ::ll::TypedStorage<8, 32, ::TextObjectRoot> mTextObjectMessage;
104 ::ll::TypedStorage<8, 224, ::SignBlockActor::CachedMessageData> mCachedMessage;
105 ::ll::TypedStorage<4, 16, ::mce::Color> mSignTextColor;
106 ::ll::TypedStorage<1, 1, bool> mGlowing;
107 ::ll::TypedStorage<1, 1, bool> mHideGlowOutline;
108 ::ll::TypedStorage<1, 1, bool> mShouldPersistFormatting;
109 ::ll::TypedStorage<8, 32, ::std::string> mLastEditXuid;
110 ::ll::TypedStorage<8, 32, ::std::string> mTextObjectString;
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 setMessage(::TextObjectRoot message);
138
139 MCAPI void setMessage(::std::string message);
140
141 MCAPI ~Text();
142 // NOLINTEND
143
144 public:
145 // static variables
146 // NOLINTBEGIN
147 MCAPI static ::std::add_lvalue_reference_t<char const[]> SIGN_PERSIST_FORMATTING_TAG();
148 // NOLINTEND
149
150 public:
151 // constructor thunks
152 // NOLINTBEGIN
153 MCAPI void* $ctor();
154
155 MCAPI void* $ctor(::SignBlockActor::Text&&);
156 // NOLINTEND
157
158 public:
159 // destructor thunk
160 // NOLINTBEGIN
161 MCAPI void $dtor();
162 // NOLINTEND
163 };
164
165public:
166 // member variables
167 // NOLINTBEGIN
168 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SignBlockActor::Text>> mTextFront;
169 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SignBlockActor::Text>> mTextBack;
170 ::ll::TypedStorage<1, 1, bool> mIsWaxed;
171 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLockedForEditingBy;
172 ::ll::TypedStorage<1, 1, bool> mIsRemoteProfanityFilterEnabled;
173 ::ll::TypedStorage<1, 1, bool> mIsLocalProfanityFilterEnabled;
174 // NOLINTEND
175
176public:
177 // prevent constructor by default
179
180public:
181 // virtual functions
182 // NOLINTBEGIN
183 // vIndex: 0
184 virtual ~SignBlockActor() /*override*/;
185
186 // vIndex: 2
187 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
188
189 // vIndex: 1
190 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
191
192 // vIndex: 10
193 virtual void onChanged(::BlockSource& region) /*override*/;
194
195 // vIndex: 19
196 virtual float getShadowRadius(::BlockSource& region) const /*override*/;
197
198 // vIndex: 27
199 virtual ::std::string getImmersiveReaderText(::BlockSource& region) /*override*/;
200
201 // vIndex: 9
202 virtual void tick(::BlockSource& region) /*override*/;
203
204 // vIndex: 36
205 virtual ::std::vector<::std::string> getUgcStrings(::CompoundTag const& tag) const /*override*/;
206
207 // vIndex: 37
208 virtual ::std::vector<::std::string> getFilteredUgcStrings(::CompoundTag const& tag) const /*override*/;
209
210 // vIndex: 38
211 virtual void setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
212
213 // vIndex: 39
214 virtual void setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
215
216 // vIndex: 41
217 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
218
219 // vIndex: 42
220 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
221
222 // vIndex: 43
223 virtual bool _playerCanUpdate(::Player const& fromPlayer) const /*override*/;
224 // NOLINTEND
225
226public:
227 // member functions
228 // NOLINTBEGIN
229 MCAPI SignBlockActor(::BlockPos const& pos, ::BlockActorType blockActorType, ::BlockActorRendererId rendererId);
230
231 MCAPI void _updateTextFromClient(::CompoundTag const& data, ::BlockSource const& region);
232
233 MCAPI ::SignTextSide getSideFacingPlayer(::Player const& player) const;
234
235 MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::std::string message, ::std::string ownerID);
236
237 MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::TextObjectRoot message, ::std::string ownerID);
238 // NOLINTEND
239
240public:
241 // constructor thunks
242 // NOLINTBEGIN
243 MCAPI void* $ctor(::BlockPos const& pos, ::BlockActorType blockActorType, ::BlockActorRendererId rendererId);
244 // NOLINTEND
245
246public:
247 // destructor thunk
248 // NOLINTBEGIN
249 MCAPI void $dtor();
250 // NOLINTEND
251
252public:
253 // virtual function thunks
254 // NOLINTBEGIN
255 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
256
257 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
258
259 MCFOLD void $onChanged(::BlockSource& region);
260
261 MCAPI float $getShadowRadius(::BlockSource& region) const;
262
263 MCAPI ::std::string $getImmersiveReaderText(::BlockSource& region);
264
265 MCAPI void $tick(::BlockSource& region);
266
267 MCAPI ::std::vector<::std::string> $getUgcStrings(::CompoundTag const& tag) const;
268
269 MCAPI ::std::vector<::std::string> $getFilteredUgcStrings(::CompoundTag const& tag) const;
270
271 MCAPI void $setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
272
273 MCAPI void $setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
274
275 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
276
277 MCAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
278
279 MCAPI bool $_playerCanUpdate(::Player const& fromPlayer) const;
280 // NOLINTEND
281
282public:
283 // vftables
284 // NOLINTBEGIN
285 MCAPI static void** $vftable();
286 // NOLINTEND
287};
Definition BlockActor.h:32
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:207
Definition Player.h:123
Definition SaveContext.h:5
Definition SignBlockActor.h:90
Definition SignBlockActor.h:28
Definition TextObjectRoot.h:14
Definition SignBlockActor.h:38
Definition SignBlockActor.h:76