LeviLamina
Loading...
Searching...
No Matches
VillageFeature.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 VillageFeature : public ::StructureFeature {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::BiomeIdType>> allowedBiomes;
26 ::ll::TypedStorage<4, 4, int> mTownSpacing;
27 ::ll::TypedStorage<4, 4, int> mMinTownSeparation;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 VillageFeature();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ::gsl::span<::BiomeIdType const> getRequiredBiomes() const /*override*/;
38
39 virtual bool isFeatureChunk(
40 ::BiomeSource const& biomeSource,
41 ::Random& random,
42 ::ChunkPos const& chunkPos,
43 uint levelSeed,
44 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
45 ::Dimension const&
46 ) /*override*/;
47
48 virtual bool getNearestGeneratedFeature(
49 ::Dimension& dimension,
50 ::BiomeSource const& biomeSource,
51 ::BlockPos const& origin,
52 ::BlockPos& pos,
53 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
54 bool mustBeInNewChunks,
55 ::std::optional<::HashedString> const& biomeTag
56 ) /*override*/;
57
58 virtual bool shouldPostProcessMobs() const /*override*/;
59
60 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
61 ::Dimension& generator,
62 ::BiomeSource const& biomeSource,
63 ::Random& random,
64 ::ChunkPos const& chunkPos,
65 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel
66 ) /*override*/;
67
68 virtual ~VillageFeature() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI VillageFeature(uint seed, int townSpacing, int minTownSeparation);
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(uint seed, int townSpacing, int minTownSeparation);
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCFOLD ::gsl::span<::BiomeIdType const> $getRequiredBiomes() const;
87
88 MCAPI bool $isFeatureChunk(
89 ::BiomeSource const& biomeSource,
90 ::Random& random,
91 ::ChunkPos const& chunkPos,
92 uint levelSeed,
93 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
94 ::Dimension const&
95 );
96
97 MCAPI bool $getNearestGeneratedFeature(
98 ::Dimension& dimension,
99 ::BiomeSource const& biomeSource,
100 ::BlockPos const& origin,
101 ::BlockPos& pos,
102 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
103 bool mustBeInNewChunks,
104 ::std::optional<::HashedString> const& biomeTag
105 );
106
107 MCFOLD bool $shouldPostProcessMobs() const;
108
109 MCAPI ::std::unique_ptr<::StructureStart> $createStructureStart(
110 ::Dimension& generator,
111 ::BiomeSource const& biomeSource,
112 ::Random& random,
113 ::ChunkPos const& chunkPos,
114 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel
115 );
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
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
Definition StructureStart.h:15
static MCAPI void ** $vftable()
Definition BiomeIdType.h:8