LeviLamina
Loading...
Searching...
No Matches
StructureFeatureRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BiomeSource;
8class BlockPos;
9class Dimension;
10class HashedString;
13namespace br::worldgen { class StructureCache; }
14namespace br::worldgen { struct ChunkGeneratorStructureState; }
15// clang-format on
16
18public:
19 // StructureFeatureRegistry inner types define
20 using StructureFeatureContainer = ::std::vector<::std::unique_ptr<::StructureFeature>>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 48, ::br::worldgen::ChunkGeneratorStructureState> mGeneratorState;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::StructureFeature>>> mStructureFeatures;
27 ::ll::TypedStorage<8, 136, ::br::worldgen::StructureCache> mStructureCache;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI bool findNearestStructureFeature(
34 ::Dimension& dimension,
35 ::IPreliminarySurfaceProvider& surfaceProvider,
36 ::HashedString feature,
37 ::BlockPos const& origin,
38 ::BlockPos& pos,
39 ::BiomeSource const& biomeSource,
40 bool mustBeInNewChunks,
41 ::std::optional<::HashedString> biomeTag
42 );
43
44 MCAPI ::HashedString findStructureFeatureTypeAt(::BlockPos const& pos);
45
46 MCAPI ::StructureFeature* getStructureFeatureOfType(::HashedString type) const;
47
48 MCAPI bool isStructureFeatureTypeAt(::BlockPos const& pos, ::HashedString type) const;
49 // NOLINTEND
50};
Definition BiomeSource.h:16
Definition BlockPos.h:18
Definition Dimension.h:83
Definition HashedString.h:5
Definition IPreliminarySurfaceProvider.h:8
Definition StructureFeatureRegistry.h:17
Definition StructureFeature.h:23