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/legacy/ActorUniqueID.h"
7#include "mc/world/level/block/actor/BlockActor.h"
8#include "mc/world/level/block/actor/SignTextSide.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class Player;
18class SaveContext;
19class TextObjectRoot;
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
49
51
53 // NOLINTEND
54
55 public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor();
59
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCNAPI 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: 9
191 virtual void onChanged(::BlockSource& region) /*override*/;
192
193 // vIndex: 20
194 virtual float getShadowRadius(::BlockSource& region) const /*override*/;
195
196 // vIndex: 29
197 virtual ::std::string getImmersiveReaderText(::BlockSource& region) /*override*/;
198
199 // vIndex: 8
200 virtual void tick(::BlockSource& region) /*override*/;
201
202 // vIndex: 39
203 virtual ::std::vector<::std::string> getUgcStrings(::CompoundTag const& tag) const /*override*/;
204
205 // vIndex: 40
206 virtual ::std::vector<::std::string> getFilteredUgcStrings(::CompoundTag const& tag) const /*override*/;
207
208 // vIndex: 41
209 virtual void setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
210
211 // vIndex: 42
212 virtual void setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const /*override*/;
213
214 // vIndex: 44
215 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
216
217 // vIndex: 45
218 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
219
220 // vIndex: 46
221 virtual bool _playerCanUpdate(::Player const& fromPlayer) const /*override*/;
222 // NOLINTEND
223
224public:
225 // member functions
226 // NOLINTBEGIN
227 MCNAPI void _updateTextFromClient(::CompoundTag const& data, ::BlockSource const& region);
228
229 MCNAPI ::SignTextSide getSideFacingPlayer(::Player const& player) const;
230
231 MCNAPI void setMessageForServerScripingOnly(::SignTextSide side, ::std::string message, ::std::string ownerID);
232
233 MCNAPI void setMessageForServerScripingOnly(::SignTextSide side, ::TextObjectRoot message, ::std::string ownerID);
234 // NOLINTEND
235
236public:
237 // virtual function thunks
238 // NOLINTBEGIN
239 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
240
241 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
242
243 MCNAPI void $onChanged(::BlockSource& region);
244
245 MCNAPI float $getShadowRadius(::BlockSource& region) const;
246
247 MCNAPI ::std::string $getImmersiveReaderText(::BlockSource& region);
248
249 MCNAPI void $tick(::BlockSource& region);
250
251 MCNAPI ::std::vector<::std::string> $getUgcStrings(::CompoundTag const& tag) const;
252
253 MCNAPI ::std::vector<::std::string> $getFilteredUgcStrings(::CompoundTag const& tag) const;
254
255 MCNAPI void $setUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
256
257 MCNAPI void $setFilteredUgcStrings(::CompoundTag& tag, ::std::vector<::std::string> const& list) const;
258
259 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
260
261 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
262
263 MCNAPI bool $_playerCanUpdate(::Player const& fromPlayer) const;
264 // NOLINTEND
265
266public:
267 // vftables
268 // NOLINTBEGIN
269 MCNAPI static void** $vftable();
270 // NOLINTEND
271};
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition ILevel.h:205
Definition Player.h:119
Definition SaveContext.h:5
Definition SignBlockActor.h:90
Definition SignBlockActor.h:22
MCAPI ::std::vector<::std::string > $getUgcStrings(::CompoundTag const &tag) const
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI ::std::vector<::std::string > $getFilteredUgcStrings(::CompoundTag const &tag) const
MCAPI void $onChanged(::BlockSource &region)
MCAPI void $tick(::BlockSource &region)
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI float $getShadowRadius(::BlockSource &region) const
MCAPI void $setFilteredUgcStrings(::CompoundTag &tag, ::std::vector<::std::string > const &list) const
MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::TextObjectRoot message, ::std::string ownerID)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void setMessageForServerScripingOnly(::SignTextSide side, ::std::string message, ::std::string ownerID)
MCAPI void _updateTextFromClient(::CompoundTag const &data, ::BlockSource const &region)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MCAPI void $setUgcStrings(::CompoundTag &tag, ::std::vector<::std::string > const &list) const
MCAPI::std::string $getImmersiveReaderText(::BlockSource &region)
MCAPI bool $_playerCanUpdate(::Player const &fromPlayer) const
MCAPI::SignTextSide getSideFacingPlayer(::Player const &player) const
static MCAPI void ** $vftable()
Definition TextObjectRoot.h:14
Definition SignBlockActor.h:32
MCAPI CachedLineData(::SignBlockActor::CachedLineData &&)
MCAPI void * $ctor(::SignBlockActor::CachedLineData &&)
Definition SignBlockActor.h:70
Definition Alias.h:14