LeviLamina
Loading...
Searching...
No Matches
StructureEditorData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/safety/RedactableString.h"
7#include "mc/util/AnimationMode.h"
8#include "mc/util/Mirror.h"
9#include "mc/util/Rotation.h"
10#include "mc/world/level/block/StructureBlockType.h"
11#include "mc/world/level/levelgen/structure/StructureRedstoneSaveMode.h"
12#include "mc/world/level/levelgen/structure/StructureSettings.h"
13
14// auto generated forward declare list
15// clang-format off
16class BlockPos;
17class CompoundTag;
18class DataLoadHelper;
19class Vec3;
20struct ActorUniqueID;
21// clang-format on
22
23class StructureEditorData {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mStructureName;
28 ::ll::TypedStorage<8, 32, ::std::string> mDataField;
29 ::ll::TypedStorage<1, 1, bool> mIncludePlayers;
30 ::ll::TypedStorage<1, 1, bool> mShowBoundingBox;
31 ::ll::TypedStorage<1, 1, ::StructureRedstoneSaveMode> mRedstoneSaveMode;
32 ::ll::TypedStorage<4, 4, ::StructureBlockType> mType;
33 ::ll::TypedStorage<8, 104, ::StructureSettings> mSettings;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 StructureEditorData& operator=(StructureEditorData const&);
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI StructureEditorData();
44
45 MCAPI StructureEditorData(::StructureEditorData&&);
46
47 MCAPI StructureEditorData(::StructureEditorData const&);
48
49#ifdef LL_PLAT_C
50 MCAPI ::AnimationMode getAnimationMode() const;
51#endif
52
53 MCAPI ::std::string getAnimationModeAsString() const;
54
55 MCAPI float getAnimationSeconds() const;
56
57 MCAPI bool getIgnoreBlocks() const;
58
59 MCAPI bool getIgnoreEntities() const;
60
61 MCFOLD bool getIncludePlayers() const;
62
63 MCAPI uint getIntegritySeed() const;
64
65 MCAPI float getIntegrityValue() const;
66
67 MCAPI bool getIsWaterLogged() const;
68
69 MCAPI ::Mirror getMirror() const;
70
71 MCAPI ::Vec3 const& getPivot() const;
72
73 MCAPI ::StructureRedstoneSaveMode getRedstoneSaveMode() const;
74
75 MCAPI ::Rotation getRotation() const;
76
77 MCAPI bool getShowBoundingBox() const;
78
79 MCFOLD ::StructureBlockType getStructureBlockType() const;
80
81#ifdef LL_PLAT_C
82 MCFOLD ::std::string const& getStructureDataField() const;
83#endif
84
85 MCFOLD ::Bedrock::Safety::RedactableString const& getStructureName() const;
86
87 MCAPI ::BlockPos const& getStructureOffset() const;
88
89 MCFOLD ::StructureSettings const& getStructureSettings() const;
90
91 MCAPI ::BlockPos const& getStructureSize() const;
92
93 MCAPI void load(::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
94
95 MCAPI ::StructureEditorData& operator=(::StructureEditorData&&);
96
97 MCAPI void save(::CompoundTag& tag) const;
98
99 MCAPI void setAllowNonTickingPlayerAndTickingAreaChunks(bool allowNonTickingPlayerAndTickingAreaChunks);
100
101 MCAPI void setAnimationMode(::AnimationMode animationMode);
102
103 MCAPI void setAnimationSeconds(float animationSeconds);
104
105 MCAPI void setAnimationTicks(uint animationTicks);
106
107 MCAPI void setFilteredStructureName(::std::string const& filteredName);
108
109 MCAPI void setIgnoreBlocks(bool ignoreBlocks);
110
111 MCAPI void setIgnoreEntities(bool ignoreEntities);
112
113#ifdef LL_PLAT_C
114 MCFOLD void setIncludePlayers(bool includePlayers);
115#endif
116
117 MCAPI void setIntegritySeed(uint integritySeed);
118
119 MCAPI void setIntegrityValue(float integrityValue);
120
121 MCAPI void setIsWaterLogged(bool waterLogged);
122
123 MCAPI void setLastTouchedByPlayerID(::ActorUniqueID lastTouchedByPlayerID);
124
125 MCAPI void setMirror(::Mirror mirror);
126
127#ifdef LL_PLAT_C
128 MCAPI void setRedstoneSaveMode(::StructureRedstoneSaveMode redstoneSaveMode);
129#endif
130
131 MCAPI void setRotation(::Rotation rotation);
132
133 MCAPI void setShowBoundingBox(bool showBoundingBox);
134
135 MCAPI void setStructureBlockType(::StructureBlockType structureBlockType);
136
137#ifdef LL_PLAT_C
138 MCFOLD void setStructureDataField(::std::string const& dataField);
139#endif
140
141 MCAPI void setStructureName(::Bedrock::Safety::RedactableString const& name);
142
143 MCAPI void setStructureOffset(::BlockPos const& offset);
144
145 MCAPI void setStructureSize(::BlockPos const& size);
146
147 MCAPI void validateOffset(::BlockPos const& structurePosition, short minHeight, short maxHeight);
148
149 MCAPI void validateSize(::BlockPos const& structurePosition, short minHeight, short maxHeight);
150
151 MCAPI ~StructureEditorData();
152 // NOLINTEND
153
154public:
155 // static functions
156 // NOLINTBEGIN
157 MCAPI static ::BlockPos getOrientedBounds(::BlockPos const& size, ::Rotation rotation);
158 // NOLINTEND
159
160public:
161 // static variables
162 // NOLINTBEGIN
163 MCAPI static ::std::string const& DEFAULT_EXPORT_NAME();
164
165 MCAPI static ::std::string const& DEFAULT_STRUCTURE_NAMESPACE();
166
167 MCAPI static ::StructureBlockType const& DEFAULT_STRUCTURE_TYPE();
168
169 MCAPI static ::BlockPos const& MIN_STRUCTURE_SIZE();
170
171 MCAPI static char const& NAMESPACE_DELIMITER();
172
173 MCAPI static ::std::string const& NAME_PREFIX();
174 // NOLINTEND
175
176public:
177 // constructor thunks
178 // NOLINTBEGIN
179 MCAPI void* $ctor();
180
181 MCAPI void* $ctor(::StructureEditorData&&);
182
183 MCAPI void* $ctor(::StructureEditorData const&);
184 // NOLINTEND
185
186public:
187 // destructor thunk
188 // NOLINTBEGIN
189 MCAPI void $dtor();
190 // NOLINTEND
191};
Definition RedactableString.h:10
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition Vec3.h:10
Definition ActorUniqueID.h:10