Skip to content
LeviMC
English
AutoLightDark
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
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, int64> mLevelSeed;
23 ::ll::TypedStorage<8, 8, int64> mRingsSeed;
24 ::ll::TypedStorage<8, 8, uint64> mMaxStructureCount;
25 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::br::worldgen::StructureSet const>>> mPossibleStructures;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI ::std::optional<::BlockPos> findNearestStructureFeature(
32 ::Dimension& dimension,
33 ::HashedString feature,
34 ::BlockPos const& origin,
35 ::BiomeSource const& biomeSource,
36 bool mustBeInNewChunks,
37 int searchRadiusCells
38 ) const;
39
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createFlat(
47 int64 levelSeed,
48 ::BiomeSource const& biomeSource,
49 ::std::vector<::std::shared_ptr<::br::worldgen::StructureSet const>> structureOverrides
50 );
51
52 MCAPI static ::br::worldgen::ChunkGeneratorStructureState createNormal(
53 int64 levelSeed,
54 ::BiomeSource const& biomeSource,
55 ::br::worldgen::StructureSetRegistry const& allStructures
56 );
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCAPI void $dtor();
63 // NOLINTEND
64};
65
66} // namespace br::worldgen
Definition BiomeSource.h:23
Definition BlockPos.h:14
Definition Dimension.h:86
Definition HashedString.h:5
Definition StructureSetRegistry.h:12
Definition ChunkGeneratorStructureState.h:18
MCAPI ::std::optional<::BlockPos > findNearestStructureFeature(::Dimension &dimension, ::HashedString feature, ::BlockPos const &origin, ::BiomeSource const &biomeSource, bool mustBeInNewChunks, int searchRadiusCells) const
Definition StructureSet.h:16