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
7
class
BiomeRegistry
;
8
class
BiomeSource
;
9
class
BlockType
;
10
class
BlockVolume
;
11
class
ChunkPos
;
12
class
Random
;
13
class
Vec3
;
14
struct
WorldGenContext
;
15
namespace
CanyonFeatureUtils {
struct
CanyonConfiguration
; }
16
// clang-format on
17
18
class
CanyonFeature {
19
public
:
20
// member variables
21
// NOLINTBEGIN
22
::ll::TypedStorage<2, 2, short const> mSeaLevel;
23
::ll::TypedStorage<1, 1, bool> mAllowMegaCanyons;
24
// NOLINTEND
25
26
public
:
27
// prevent constructor by default
28
CanyonFeature();
29
30
public
:
31
// virtual functions
32
// NOLINTBEGIN
33
virtual
bool
_carve(
34
::BlockVolume
& blocks,
35
::BiomeSource
const
& localBiomeSource,
36
::CanyonFeatureUtils::CanyonConfiguration
const
& canyonConfig,
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
57
public
:
58
// member functions
59
// NOLINTBEGIN
60
MCAPI
explicit
CanyonFeature(
short
seaLevel);
61
62
MCAPI
void
_addFeature(
63
::BlockVolume
& blocks,
64
::BiomeSource
const
& localBiomeSource,
65
::CanyonFeatureUtils::CanyonConfiguration
const
& canyonConfig,
66
::ChunkPos
const
& pos,
67
::Random
& random,
68
int
x,
69
int
z,
70
::WorldGenContext
const
&
context
,
71
::BiomeRegistry
const
& biomeRegistry
72
);
73
74
MCAPI
void
_addTunnel(
75
::BlockVolume
& blocks,
76
::BiomeSource
const
& localBiomeSource,
77
::CanyonFeatureUtils::CanyonConfiguration
const
& canyonConfig,
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,
88
::WorldGenContext
const
&
context
,
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,
98
::CanyonFeatureUtils::CanyonConfiguration
const
& canyonConfig,
99
::Random
& random,
100
uint levelSeed,
101
::WorldGenContext
const
&
context
,
102
::BiomeRegistry
const
& biomeRegistry
103
);
104
// NOLINTEND
105
106
public
:
107
// constructor thunks
108
// NOLINTBEGIN
109
MCAPI
void
* $ctor(
short
seaLevel);
110
// NOLINTEND
111
112
public
:
113
// virtual function thunks
114
// NOLINTBEGIN
115
MCAPI
bool
$_carve(
116
::BlockVolume
& blocks,
117
::BiomeSource
const
& localBiomeSource,
118
::CanyonFeatureUtils::CanyonConfiguration
const
& canyonConfig,
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
141
public
:
142
// vftables
143
// NOLINTBEGIN
144
MCNAPI
static
void
**
$vftable
();
145
// NOLINTEND
146
};
BiomeRegistry
Definition
BiomeRegistry.h:37
BiomeSource
Definition
BiomeSource.h:24
BlockType
Definition
BlockType.h:84
BlockVolume
Definition
BlockVolume.h:14
CanyonFeature::$vftable
static MCAPI void ** $vftable()
ChunkPos
Definition
ChunkPos.h:11
Random
Definition
Random.h:10
Vec3
Definition
Vec3.h:10
CanyonFeatureUtils::CanyonConfiguration
Definition
CanyonConfiguration.h:7
WorldGenContext
Definition
WorldGenContext.h:13
context
Definition
context.h:5
src
mc
world
level
levelgen
feature
CanyonFeature.h
Generated on
for LeviLamina by
1.16.1