LeviLamina
Loading...
Searching...
No Matches
RandomScatteredLargeFeature.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 RandomScatteredLargeFeature : public ::StructureFeature {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> mAllowedBiomes;
26 ::ll::TypedStorage<4, 4, int> mSpacing;
27 ::ll::TypedStorage<4, 4, int> mMinSeparation;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 RandomScatteredLargeFeature();
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 bool shouldAddHardcodedSpawnAreas() const /*override*/;
50
51 virtual bool shouldPostProcessMobs() const /*override*/;
52
53 virtual bool isFeatureChunk(
54 ::BiomeSource const& biomeSource,
55 ::Random& random,
56 ::ChunkPos const& pos,
57 uint levelSeed,
58 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
59 ::Dimension const& dimension
60 ) /*override*/;
61
62 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
63 ::Dimension& dimension,
64 ::BiomeSource const& biomeSource,
65 ::Random& random,
66 ::ChunkPos const& cp,
67 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel
68 ) /*override*/;
69
70 virtual ~RandomScatteredLargeFeature() /*override*/ = default;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI explicit RandomScatteredLargeFeature(uint seed);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(uint seed);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCFOLD ::gsl::span<::BiomeIdType const> $getRequiredBiomes() const;
89
90 MCAPI bool $getNearestGeneratedFeature(
91 ::Dimension& dimension,
92 ::BiomeSource const& biomeSource,
93 ::BlockPos const& origin,
94 ::BlockPos& pos,
95 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
96 bool mustBeInNewChunks,
97 ::std::optional<::HashedString> const& biomeTag
98 );
99
100 MCFOLD bool $shouldAddHardcodedSpawnAreas() const;
101
102 MCFOLD bool $shouldPostProcessMobs() const;
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& dimension
111 );
112
113 MCAPI ::std::unique_ptr<::StructureStart> $createStructureStart(
114 ::Dimension& dimension,
115 ::BiomeSource const& biomeSource,
116 ::Random& random,
117 ::ChunkPos const& cp,
118 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel
119 );
120
121
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCAPI static void** $vftable();
128 // NOLINTEND
129};
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