LeviLamina
Loading...
Searching...
No Matches
ChunkGeneratorStructureState.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/level/LevelSeed64.h"
5
6// auto generated forward declare list
7// clang-format off
8class BiomeSource;
9class BlockPos;
10class Dimension;
11class HashedString;
12namespace br::worldgen { class StructureSetRegistry; }
13namespace br::worldgen { struct StructureSet; }
14// clang-format on
15
16namespace br::worldgen {
17
19 using StructureSetMap = std::vector<std::shared_ptr<br::worldgen::StructureSet const>>;
20
21public:
22 LevelSeed64 mSeed64; // this+0x0
23 uint64 mSeed; // this+0x8
24 size_t mStructureSetMapSize; // this+0x10
25 StructureSetMap mStructureSetMap; // this+0x18
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 8, int64> mLevelSeed;
31 ::ll::TypedStorage<8, 8, int64> mRingsSeed;
32 ::ll::TypedStorage<8, 8, uint64> mMaxStructureCount;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::br::worldgen::StructureSet const>>> mPossibleStructures;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI ::std::optional<::BlockPos> findNearestStructureFeature(
46 ::Dimension& dimension,
47 ::HashedString feature,
48 ::BlockPos const& origin,
49 ::BiomeSource const& biomeSource,
50 bool mustBeInNewChunks
51 ) const;
52
53 MCAPI ::br::worldgen::ChunkGeneratorStructureState& operator=(::br::worldgen::ChunkGeneratorStructureState&&);
54
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createFlat(
62 int64 levelSeed,
63 ::BiomeSource const& biomeSource,
64 ::std::vector<::std::shared_ptr<::br::worldgen::StructureSet const>> structureOverrides
65 );
66
67 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createNormal(
68 int64 levelSeed,
69 ::BiomeSource const& biomeSource,
70 ::br::worldgen::StructureSetRegistry const& allStructures
71 );
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79};
80
81} // namespace br::worldgen
Definition BiomeSource.h:19
Definition BlockPos.h:18
Definition Dimension.h:83
Definition HashedString.h:5
Definition LevelSeed64.h:5
Definition StructureSetRegistry.h:12
Definition ChunkGeneratorStructureState.h:18