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