LeviLamina
Loading...
Searching...
No Matches
StrongholdFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/threading/Mutex.h"
7#include "mc/world/level/ChunkPos.h"
8#include "mc/world/level/levelgen/structure/StructureFeature.h"
9
10// auto generated forward declare list
11// clang-format off
12class BiomeSource;
13class BlockPos;
14class Dimension;
15class HashedString;
17class Random;
18class StructureStart;
19class VillageFeature;
20// clang-format on
21
23public:
24 // StrongholdFeature inner types declare
25 // clang-format off
26 struct StrongholdResult;
27 // clang-format on
28
29 // StrongholdFeature inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<1, 1, bool> success;
35 ::ll::TypedStorage<8, 8, ::ChunkPos> location;
36 // NOLINTEND
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<1, 1, bool> mIsSpotSelected;
43 ::ll::TypedStorage<8, 24, ::std::vector<::ChunkPos>> mSelectedChunks;
44 ::ll::TypedStorage<8, 8, ::VillageFeature*> mVillages;
45 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mPositionMutex;
46 // NOLINTEND
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 5
52 virtual bool isFeatureChunk(
53 ::BiomeSource const& biomeSource,
54 ::Random& random,
55 ::ChunkPos const& pos,
56 uint levelSeed,
57 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
58 ::Dimension const& dimension
59 ) /*override*/;
60
61 // vIndex: 4
62 virtual bool getNearestGeneratedFeature(
63 ::Dimension& dimension,
64 ::BiomeSource const& biomeSource,
65 ::BlockPos const& origin,
66 ::BlockPos& pos,
67 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
68 bool mustBeInNewChunks,
69 ::std::optional<::HashedString> const& biomeTag
70 ) /*override*/;
71
72 // vIndex: 6
73 virtual ::std::unique_ptr<::StructureStart> createStructureStart(
74 ::Dimension& generator,
75 ::BiomeSource const&,
76 ::Random& random,
77 ::ChunkPos const& cp,
79 ) /*override*/;
80
81 // vIndex: 0
82 virtual ~StrongholdFeature() /*override*/ = default;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
88 MCAPI ::StrongholdFeature::StrongholdResult const _generateStronghold(uint levelSeed, ::ChunkPos const& cp);
89
90 MCAPI bool _getNearestStronghold(
91 ::Dimension const& dimension,
92 uint levelSeed,
93 ::BlockPos const& origin,
94 ::BlockPos& pos,
95 bool mustBeInNewChunks
96 );
97
98 MCAPI void generatePositions(
99 ::Random& random,
100 ::BiomeSource const& biomeSource,
101 uint levelSeed,
102 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
103 ::Dimension const& dimension
104 );
105 // NOLINTEND
106
107public:
108 // static variables
109 // NOLINTBEGIN
110 MCAPI static ::BlockPos const& START_OFFSET();
111 // NOLINTEND
112
113public:
114 // virtual function thunks
115 // NOLINTBEGIN
116 MCAPI bool $isFeatureChunk(
117 ::BiomeSource const& biomeSource,
118 ::Random& random,
119 ::ChunkPos const& pos,
120 uint levelSeed,
121 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
122 ::Dimension const& dimension
123 );
124
125 MCAPI bool $getNearestGeneratedFeature(
126 ::Dimension& dimension,
127 ::BiomeSource const& biomeSource,
128 ::BlockPos const& origin,
129 ::BlockPos& pos,
130 ::IPreliminarySurfaceProvider const& preliminarySurfaceLevel,
131 bool mustBeInNewChunks,
132 ::std::optional<::HashedString> const& biomeTag
133 );
134
135 MCAPI ::std::unique_ptr<::StructureStart> $createStructureStart(
136 ::Dimension& generator,
137 ::BiomeSource const&,
138 ::Random& random,
139 ::ChunkPos const& cp,
141 );
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCAPI static void** $vftable();
148 // NOLINTEND
149};
Definition BiomeSource.h:20
Definition BlockPos.h:17
Definition ChunkPos.h:11
Definition Dimension.h:83
Definition HashedString.h:5
Definition IPreliminarySurfaceProvider.h:8
Definition Random.h:10
Definition StrongholdFeature.h:22
Definition StructureFeature.h:24
Definition StructureStart.h:15
Definition VillageFeature.h:21
Definition StrongholdFeature.h:30