LeviLamina
Loading...
Searching...
No Matches
CanyonFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BiomeRegistry;
8class BiomeSource;
9class BlockType;
10class BlockVolume;
11class ChunkPos;
12class Random;
13class Vec3;
14struct WorldGenContext;
15namespace CanyonFeatureUtils { struct CanyonConfiguration; }
16// clang-format on
17
18class CanyonFeature {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<2, 2, short const> mSeaLevel;
23 ::ll::TypedStorage<1, 1, bool> mAllowMegaCanyons;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 CanyonFeature();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual bool _carve(
34 ::BlockVolume& blocks,
35 ::BiomeSource const& localBiomeSource,
37 ::Random& pos,
38 ::ChunkPos const& startPos,
39 ::Vec3 const& originalStartPos,
40 ::Vec3 const& x0,
41 int x1,
42 int y0,
43 int y1,
44 int z0,
45 int z1,
46 int rad,
47 float yRad,
48 float widthRandomization,
49 ::gsl::span<float const> context,
50 ::WorldGenContext const& biomeRegistry,
51 ::BiomeRegistry const&
52 ) const;
53
54 virtual bool _isDiggable(::BlockType const& block) const;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI explicit CanyonFeature(short seaLevel);
61
62 MCAPI void _addFeature(
63 ::BlockVolume& blocks,
64 ::BiomeSource const& localBiomeSource,
66 ::ChunkPos const& pos,
67 ::Random& random,
68 int x,
69 int z,
71 ::BiomeRegistry const& biomeRegistry
72 );
73
74 MCAPI void _addTunnel(
75 ::BlockVolume& blocks,
76 ::BiomeSource const& localBiomeSource,
78 ::Random& random,
79 ::ChunkPos const& pos,
80 ::Vec3 const& startPos,
81 ::Vec3 const& originalStartPos,
82 float thickness,
83 float yRot,
84 float xRot,
85 int step,
86 int dist,
87 float yScale,
89 ::BiomeRegistry const& biomeRegistry
90 ) const;
91
92 MCAPI bool _detectWater(::BlockVolume& blocks, int x0, int x1, int y0, int y1, int z0, int z1) const;
93
94 MCAPI void apply(
95 ::BlockVolume& blocks,
96 ::ChunkPos const& pos,
97 ::BiomeSource const& localBiomeSource,
99 ::Random& random,
100 uint levelSeed,
102 ::BiomeRegistry const& biomeRegistry
103 );
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor(short seaLevel);
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI bool $_carve(
116 ::BlockVolume& blocks,
117 ::BiomeSource const& localBiomeSource,
119 ::Random& pos,
120 ::ChunkPos const& startPos,
121 ::Vec3 const& originalStartPos,
122 ::Vec3 const& x0,
123 int x1,
124 int y0,
125 int y1,
126 int z0,
127 int z1,
128 int rad,
129 float yRad,
130 float widthRandomization,
131 ::gsl::span<float const> context,
132 ::WorldGenContext const& biomeRegistry,
133 ::BiomeRegistry const&
134 ) const;
135
136 MCAPI bool $_isDiggable(::BlockType const& block) const;
137
138
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCNAPI static void** $vftable();
145 // NOLINTEND
146};
Definition BiomeRegistry.h:37
Definition BiomeSource.h:24
Definition BlockType.h:84
Definition BlockVolume.h:14
static MCAPI void ** $vftable()
Definition ChunkPos.h:11
Definition Random.h:10
Definition Vec3.h:10
Definition CanyonConfiguration.h:7
Definition WorldGenContext.h:13
Definition context.h:5