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/world/level/block/StructureBlockType.h"
8#include "mc/world/level/levelgen/structure/StructureRedstoneSaveMode.h"
9#include "mc/world/level/levelgen/structure/StructureSettings.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
14class CompoundTag;
15class DataLoadHelper;
16// clang-format on
17
18class StructureEditorData {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mStructureName;
23 ::ll::TypedStorage<8, 32, ::std::string> mDataField;
24 ::ll::TypedStorage<1, 1, bool> mIncludePlayers;
25 ::ll::TypedStorage<1, 1, bool> mShowBoundingBox;
26 ::ll::TypedStorage<1, 1, ::StructureRedstoneSaveMode> mRedstoneSaveMode;
27 ::ll::TypedStorage<4, 4, ::StructureBlockType> mType;
28 ::ll::TypedStorage<8, 104, ::StructureSettings> mSettings;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 StructureEditorData& operator=(StructureEditorData const&);
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI StructureEditorData();
39
40 MCAPI StructureEditorData(::StructureEditorData&&);
41
42 MCAPI StructureEditorData(::StructureEditorData const&);
43
44 MCAPI void load(::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
45
46 MCAPI void save(::CompoundTag& tag) const;
47
48 MCAPI_C void setStructureName(::Bedrock::Safety::RedactableString const& name);
49
50 MCAPI void setStructureSize(::BlockPos const& size);
51
52 MCAPI_C void validateSize(::BlockPos const& structurePosition, short minHeight, short maxHeight);
53
54 MCAPI ~StructureEditorData();
55 // NOLINTEND
56
57public:
58 // static variables
59 // NOLINTBEGIN
60 MCAPI static ::std::string const& DEFAULT_EXPORT_NAME();
61
62 MCAPI static ::std::string const& DEFAULT_STRUCTURE_NAMESPACE();
63
64 MCAPI static ::StructureBlockType const& DEFAULT_STRUCTURE_TYPE();
65
66 MCAPI static ::BlockPos const& MAX_STRUCTURE_OFFSET();
67
68 MCAPI static ::BlockPos const& MIN_STRUCTURE_OFFSET();
69
70 MCAPI static ::BlockPos const& MIN_STRUCTURE_SIZE();
71
72 MCAPI static char const& NAMESPACE_DELIMITER();
73
74 MCAPI static ::std::string const& NAME_PREFIX();
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor();
81
82 MCAPI void* $ctor(::StructureEditorData&&);
83
84 MCAPI void* $ctor(::StructureEditorData const&);
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCAPI void $dtor();
91 // NOLINTEND
92};
Definition RedactableString.h:10
Definition BlockPos.h:19
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20