LeviLamina
Loading...
Searching...
No Matches
LegacyStructureTemplate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/structure/ILegacyStructureTemplate.h"
7#include "mc/world/level/levelgen/structure/IStructureTemplate.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockPos;
13class BlockSource;
14class CompoundTag;
20class Random;
21namespace br::worldgen { struct StructureTemplateBlockPalette; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> mAuthor;
29 ::ll::TypedStorage<4, 12, ::BlockPos> mSize;
30 ::ll::TypedStorage<8, 64, ::LegacyStructureBlockPalette> mPalette;
31 ::ll::TypedStorage<8, 64, ::LegacyStructureBlockPalette> mExtraBlockPalette;
32 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyStructureBlockInfo>> mBlockInfo;
33 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyStructureActorInfo>> mEntityInfo;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 0
40 virtual ~LegacyStructureTemplate() /*override*/;
41
42 // vIndex: 0
43 virtual ::std::unordered_map<::BlockPos, ::std::string>
44 getMarkers(::BlockPos const& position, ::LegacyStructureSettings& settings) const /*override*/;
45
46 // vIndex: 1
47 virtual void
48 placeInWorld(::BlockSource& region, ::BlockPos const& pos, ::LegacyStructureSettings& settings, ::Random& random)
49 const /*override*/;
50
51 // vIndex: 2
52 virtual ::BlockPos rawSize() const /*override*/;
53
54 // vIndex: 1
55 virtual ::br::worldgen::StructureTemplateBlockPalette randomPalette(::BlockPos) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
62
63 MCAPI ::BlockPos calculateConnectedPosition(
64 ::LegacyStructureSettings const& settings1,
65 ::BlockPos const& connection1,
66 ::LegacyStructureSettings const& settings2,
67 ::BlockPos const& connection2
68 ) const;
69
70 MCAPI ::std::vector<::JigsawStructureBlockInfo> getJigsawMarkers() const;
71
72 MCAPI void load(::CompoundTag const& tag);
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void _fixItemStack(::CompoundTag& itemTag, int dataVersion);
79
80 MCAPI static void _mapPropertiesToTags(::CompoundTag& originalTag, ::CompoundTag const& paletteTag);
81
82 MCAPI static void _mapPropertyToTag(
83 ::CompoundTag& originalTag,
84 ::std::string const& propertyString,
85 ::std::string const& valueString
86 );
87
88 MCAPI static ::std::unique_ptr<::CompoundTag> _mapTag(
89 ::std::unique_ptr<::CompoundTag> originalTag,
90 ::std::string const& javaBlockName,
91 int dataVersion,
92 ::Block const*& block
93 );
94
95 MCAPI static ::Block const* _mapToBlock(::std::string const& blockName);
96
97 MCAPI static ::Block const& _mapToData(::Block const& curr, ::LegacyStructureSettings const& settings);
98
99 MCAPI static ::Block const*
100 _mapToProperty(::std::string const& propertyString, ::std::string const& valueString, ::Block const& block);
101 // NOLINTEND
102
103public:
104 // static variables
105 // NOLINTBEGIN
106 MCAPI static ::std::string const& AUTHOR_TAG();
107
108 MCAPI static ::std::string const& BLOCKS_TAG();
109
110 MCAPI static ::std::string const& BLOCK_TAG_NBT();
111
112 MCAPI static ::std::string const& BLOCK_TAG_POS();
113
114 MCAPI static ::std::string const& BLOCK_TAG_STATE();
115
116 MCAPI static int const& CHUNK_SIZE();
117
118 MCAPI static ::std::string const& DATA_VERSION_TAG();
119
120 MCAPI static ::std::string const& ENTITIES_TAG();
121
122 MCAPI static ::std::string const& ENTITY_TAG_BLOCKPOS();
123
124 MCAPI static ::std::string const& ENTITY_TAG_NBT();
125
126 MCAPI static ::std::string const& ENTITY_TAG_POS();
127
128 MCAPI static ::std::string const& MINECRAFT_PREFIX();
129
130 MCAPI static ::std::string const& PALETTE_TAG();
131
132 MCAPI static ::std::string const& SIZE_TAG();
133
134 MCAPI static ::std::string const& VERSION_TAG();
135 // NOLINTEND
136
137public:
138 // constructor thunks
139 // NOLINTBEGIN
140 MCAPI void* $ctor();
141 // NOLINTEND
142
143public:
144 // destructor thunk
145 // NOLINTBEGIN
146 MCAPI void $dtor();
147 // NOLINTEND
148
149public:
150 // virtual function thunks
151 // NOLINTBEGIN
152 MCAPI ::std::unordered_map<::BlockPos, ::std::string>
153 $getMarkers(::BlockPos const& position, ::LegacyStructureSettings& settings) const;
154
155 MCAPI void
156 $placeInWorld(::BlockSource& region, ::BlockPos const& pos, ::LegacyStructureSettings& settings, ::Random& random)
157 const;
158
159 MCAPI ::BlockPos $rawSize() const;
160
161 MCAPI ::br::worldgen::StructureTemplateBlockPalette $randomPalette(::BlockPos) const;
162 // NOLINTEND
163
164public:
165 // vftables
166 // NOLINTBEGIN
167 MCAPI static void** $vftableForILegacyStructureTemplate();
168
169 MCAPI static void** $vftableForIStructureTemplate();
170 // NOLINTEND
171};
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition CompoundTag.h:13
Definition ILegacyStructureTemplate.h:13
Definition IStructureTemplate.h:11
Definition JigsawStructureBlockInfo.h:12
Definition LegacyStructureActorInfo.h:12
Definition LegacyStructureBlockInfo.h:12
Definition LegacyStructureBlockPalette.h:10
Definition LegacyStructureSettings.h:22
Definition LegacyStructureTemplate.h:24
Definition Random.h:16