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