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 BlockLegacy;
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 // vIndex: 0
29 virtual bool _carve(
30 ::BlockVolume& blocks,
31 ::BiomeSource const& localBiomeSource,
33 ::Random&,
34 ::ChunkPos const& pos,
35 ::Vec3 const& startPos,
36 ::Vec3 const& originalStartPos,
37 int x0,
38 int x1,
39 int y0,
40 int y1,
41 int z0,
42 int z1,
43 float rad,
44 float yRad,
45 ::gsl::span<float const> widthRandomization,
47 ) const;
48
49 // vIndex: 1
50 virtual bool _isDiggable(::BlockLegacy const& block) const;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI void _addFeature(
57 ::BlockVolume& blocks,
58 ::BiomeSource const& localBiomeSource,
60 ::ChunkPos const& pos,
61 ::Random& random,
62 int x,
63 int z,
65 );
66
67 MCAPI void _addTunnel(
68 ::BlockVolume& blocks,
69 ::BiomeSource const& localBiomeSource,
71 ::Random& random,
72 ::ChunkPos const& pos,
73 ::Vec3 const& startPos,
74 ::Vec3 const& originalStartPos,
75 float thickness,
76 float yRot,
77 float xRot,
78 int yScale,
79 int context,
80 float step,
81 ::WorldGenContext const& dist
82 ) const;
83
84 MCAPI void apply(
85 ::BlockVolume& blocks,
86 ::ChunkPos const& pos,
87 ::BiomeSource const& localBiomeSource,
89 ::Random& random,
90 uint levelSeed,
92 );
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI bool $_carve(
99 ::BlockVolume& blocks,
100 ::BiomeSource const& localBiomeSource,
102 ::Random&,
103 ::ChunkPos const& pos,
104 ::Vec3 const& startPos,
105 ::Vec3 const& originalStartPos,
106 int x0,
107 int x1,
108 int y0,
109 int y1,
110 int z0,
111 int z1,
112 float rad,
113 float yRad,
114 ::gsl::span<float const> widthRandomization,
116 ) const;
117
118 MCAPI bool $_isDiggable(::BlockLegacy const& block) const;
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCAPI static void** $vftable();
125 // NOLINTEND
126};
Definition BiomeSource.h:16
Definition BlockLegacy.h:88
Definition BlockVolume.h:11
Definition CanyonFeature.h:17
Definition ChunkPos.h:11
Definition Random.h:16
Definition Vec3.h:10
Definition CanyonConfiguration.h:7
Definition WorldGenContext.h:13
Definition context.h:5