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
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ::std::optional<::BlockPos> findNearestStructureFeature(
45 ::Dimension& dimension,
46 ::HashedString feature,
47 ::BlockPos const& origin,
48 ::BiomeSource const& biomeSource,
49 bool mustBeInNewChunks
50 ) const;
51
52 MCAPI ::br::worldgen::ChunkGeneratorStructureState& operator=(::br::worldgen::ChunkGeneratorStructureState&&);
53
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createFlat(
61 int64 levelSeed,
62 ::BiomeSource const& biomeSource,
63 ::std::vector<::std::shared_ptr<::br::worldgen::StructureSet const>> structureOverrides
64 );
65
66 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createNormal(
67 int64 levelSeed,
68 ::BiomeSource const& biomeSource,
69 ::br::worldgen::StructureSetRegistry const& allStructures
70 );
71 // NOLINTEND
72
73public:
74 // destructor thunk
75 // NOLINTBEGIN
76 MCAPI void $dtor();
77 // NOLINTEND
78};
79
80} // namespace br::worldgen
Definition BiomeSource.h:16
Definition BlockPos.h:18
Definition Dimension.h:83
Definition HashedString.h:5
Definition LevelSeed64.h:5
Definition StructureSetRegistry.h:12
Definition ChunkGeneratorStructureState.h:18