LeviLamina
Loading...
Searching...
No Matches
Structure.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/actor/spawn_category/Type.h"
8#include "mc/world/level/levelgen/v2/generation_step/Type.h"
9#include "mc/world/level/levelgen/v2/terrain_adjustment/Type.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
15struct BiomeIdType;
16namespace br::worldgen { class GenerationStub; }
17namespace br::worldgen { class StructureInstance; }
18namespace br::worldgen { struct GenerationContext; }
19namespace br::worldgen { struct StructureSpawnOverride; }
20// clang-format on
21
22namespace br::worldgen {
23
24struct Structure {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 1, ::br::worldgen::TerrainAdjustment::Type> mAdjustment;
29 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mBiomes;
30 ::ll::TypedStorage<8, 32, ::std::string> mKey;
31 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>>
32 mMobs;
33 ::ll::TypedStorage<1, 1, ::br::worldgen::GenerationStep::Type> mStep;
34 ::ll::TypedStorage<8, 48, ::HashedString> mType;
35 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::PoolAliasBinding>>> mPoolAliases;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 Structure& operator=(Structure const&);
41 Structure();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ~Structure();
47
48 virtual ::std::optional<::br::worldgen::GenerationStub>
49 findValidGenerationPoint(::br::worldgen::GenerationContext& context) const = 0;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI Structure(::br::worldgen::Structure const&);
56
57 MCAPI ::std::shared_ptr<::br::worldgen::StructureInstance>
59
60 MCAPI bool isValidBiome(::br::worldgen::GenerationContext const& context, ::BlockPos pos) const;
61
62 MCAPI bool operator==(::br::worldgen::Structure const& rhs) const;
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(::br::worldgen::Structure const&);
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCAPI void $dtor();
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
89
90} // namespace br::worldgen
Definition BlockPos.h:21
Definition PoolAliasBinding.h:16
Definition GenerationStub.h:17
Definition StructureInstance.h:22
Definition BiomeIdType.h:8
Definition GenerationContext.h:17
Definition StructureSpawnOverride.h:16
Definition Structure.h:24
static MCAPI void ** $vftable()
Definition context.h:5