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