LeviLamina
Loading...
Searching...
No Matches
BuriedTreasureFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/structure/StructureFeature.h"
7
8// auto generated forward declare list
9// clang-format off
10class BiomeSource;
11class BlockPos;
12class ChunkPos;
13class Dimension;
14class HashedString;
16class Random;
17class StructureStart;
18struct BiomeIdType;
19// clang-format on
20
21class BuriedTreasureFeature : public ::StructureFeature {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, int> mSpacing;
26 ::ll::TypedStorage<4, 4, int> mMinSeparation;
27 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mAllowedBiomes;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 BuriedTreasureFeature();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ::gsl::span<::BiomeIdType const> getRequiredBiomes() const /*override*/;
38
39 virtual bool getNearestGeneratedFeature(
40 ::Dimension& dimension,
41 ::BiomeSource const& biomeSource,
42 ::BlockPos const& origin,
43 ::BlockPos& pos,
44 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
45 bool mustBeInNewChunks,
46 ::std::optional<::HashedString> const& biomeTag
47 ) /*override*/;
48
49 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
50 ::Dimension& generator,
51 ::BiomeSource const&,
52 ::Random& random,
53 ::ChunkPos const& lc,
55 ) /*override*/;
56
57 virtual bool isFeatureChunk(
58 ::BiomeSource const& biomeSource,
59 ::Random& random,
60 ::ChunkPos const& pos,
61 uint levelSeed,
62 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
63 ::Dimension const&
64 ) /*override*/;
65
66 virtual ~BuriedTreasureFeature() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI explicit BuriedTreasureFeature(uint seed);
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(uint seed);
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD ::gsl::span<::BiomeIdType const> $getRequiredBiomes() const;
85
86 MCAPI bool $getNearestGeneratedFeature(
87 ::Dimension& dimension,
88 ::BiomeSource const& biomeSource,
89 ::BlockPos const& origin,
90 ::BlockPos& pos,
91 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
92 bool mustBeInNewChunks,
93 ::std::optional<::HashedString> const& biomeTag
94 );
95
96 MCAPI ::std::unique_ptr<::StructureStart> $createStructureStart(
97 ::Dimension& generator,
98 ::BiomeSource const&,
99 ::Random& random,
100 ::ChunkPos const& lc,
102 );
103
104 MCAPI bool $isFeatureChunk(
105 ::BiomeSource const& biomeSource,
106 ::Random& random,
107 ::ChunkPos const& pos,
108 uint levelSeed,
109 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
110 ::Dimension const&
111 );
112
113
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCAPI static void** $vftable();
120 // NOLINTEND
121};
Definition BiomeSource.h:20
Definition BlockPos.h:19
Definition ChunkPos.h:11
Definition Dimension.h:85
Definition HashedString.h:5
Definition IPreliminarySurfaceProvider.h:8
Definition Random.h:10
static MCAPI void ** $vftable()
Definition StructureStart.h:15
Definition BiomeIdType.h:8