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 BiomeSource;
8class BlockType;
9class BlockVolume;
10class ChunkPos;
11class Random;
12class Vec3;
13struct WorldGenContext;
14namespace CanyonFeatureUtils { struct CanyonConfiguration; }
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<2, 2, short const> mSeaLevel;
22 ::ll::TypedStorage<1, 1, bool> mAllowMegaCanyons;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual bool _carve(
29 ::BlockVolume& blocks,
30 ::BiomeSource const& localBiomeSource,
32 ::Random&,
33 ::ChunkPos const& pos,
34 ::Vec3 const& startPos,
35 ::Vec3 const& originalStartPos,
36 int x0,
37 int x1,
38 int y0,
39 int y1,
40 int z0,
41 int z1,
42 float rad,
43 float yRad,
44 ::gsl::span<float const> widthRandomization,
46 ) const;
47
48 virtual bool _isDiggable(::BlockType const& block) const;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI void _addFeature(
55 ::BlockVolume& blocks,
56 ::BiomeSource const& localBiomeSource,
58 ::ChunkPos const& pos,
59 ::Random& random,
60 int x,
61 int z,
63 );
64
65 MCAPI void _addTunnel(
66 ::BlockVolume& blocks,
67 ::BiomeSource const& localBiomeSource,
69 ::Random& random,
70 ::ChunkPos const& pos,
71 ::Vec3 const& startPos,
72 ::Vec3 const& originalStartPos,
73 float thickness,
74 float yRot,
75 float xRot,
76 int step,
77 int dist,
78 float yScale,
80 ) const;
81
82 MCAPI void apply(
83 ::BlockVolume& blocks,
84 ::ChunkPos const& pos,
85 ::BiomeSource const& localBiomeSource,
87 ::Random& random,
88 uint levelSeed,
90 );
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96 MCAPI bool $_carve(
97 ::BlockVolume& blocks,
98 ::BiomeSource const& localBiomeSource,
100 ::Random&,
101 ::ChunkPos const& pos,
102 ::Vec3 const& startPos,
103 ::Vec3 const& originalStartPos,
104 int x0,
105 int x1,
106 int y0,
107 int y1,
108 int z0,
109 int z1,
110 float rad,
111 float yRad,
112 ::gsl::span<float const> widthRandomization,
114 ) const;
115
116 MCAPI bool $_isDiggable(::BlockType const& block) const;
117
118
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCNAPI static void** $vftable();
125 // NOLINTEND
126};
Definition BiomeSource.h:20
Definition BlockType.h:84
Definition BlockVolume.h:13
Definition CanyonFeature.h:17
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