LeviLamina
Loading...
Searching...
No Matches
EditorStructureTemplate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/world/level/levelgen/structure/StructureTemplate.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPalette;
14class BlockPos;
15class BlockSource;
16class BoundingBox;
17class CompoundTag;
20// clang-format on
21
22namespace Editor {
23
25public:
26 // member variables
27 // NOLINTBEGIN
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~EditorStructureTemplate() /*override*/;
45
46 // vIndex: 5
47 virtual void clear() /*override*/;
48
49 // vIndex: 3
50 virtual bool load(::CompoundTag const& tag) /*override*/;
51
52 // vIndex: 4
53 virtual ::std::unique_ptr<::CompoundTag> save() const /*override*/;
54
55 // vIndex: 6
56 virtual ::BoundingBox
57 getTransformedBounds(::BlockPos loadPosition, ::StructureSettings const& structureSettings) const /*override*/;
58
59 // vIndex: 7
60 virtual bool _allowReadBlock(::BlockPos const& position, ::Block const& block) const /*override*/;
61
62 // vIndex: 8
63 virtual bool _allowReadActor(::Actor const& actor) const /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
70
71 MCAPI explicit EditorStructureTemplate(::std::string_view name);
72
74 ::StructureTemplate const& temp,
76 );
77
78 MCAPI void placeStructureTemplateInWorldForEditor(
79 ::BlockSource& region,
80 ::BlockPalette const& transformedBounds,
81 ::BoundingBox const& structureSettings,
82 ::StructureSettings const& globalBlockPalette
83 ) const;
84
85 MCAPI void setLocation(::std::string location);
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void* $ctor(::Editor::EditorStructureTemplate const&);
92
93 MCAPI void* $ctor(::std::string_view name);
94
95 MCAPI void* $ctor(
96 ::StructureTemplate const& temp,
98 );
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCAPI void $clear();
111
112 MCAPI bool $load(::CompoundTag const& tag);
113
114 MCAPI ::std::unique_ptr<::CompoundTag> $save() const;
115
116 MCAPI ::BoundingBox
117 $getTransformedBounds(::BlockPos loadPosition, ::StructureSettings const& structureSettings) const;
118
119 MCAPI bool $_allowReadBlock(::BlockPos const& position, ::Block const& block) const;
120
121 MCFOLD bool $_allowReadActor(::Actor const& actor) const;
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCAPI static void** $vftable();
128 // NOLINTEND
129};
130
131} // namespace Editor
Definition Actor.h:104
Definition NonOwnerPointer.h:9
Definition BlockPalette.h:18
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition BoundingBox.h:18
Definition CompoundTag.h:13
Definition EditorStructureTemplate.h:24
Definition IUnknownBlockTypeRegistry.h:14
Definition StructureSettings.h:18
Definition StructureTemplate.h:32
Definition Alias.h:14