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
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 // virtual functions
28 // NOLINTBEGIN
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 ::BiomeRegistry const& biomeRegistry
48 ) const;
49
50 virtual bool _isDiggable(::BlockType 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 ::BiomeRegistry const& biomeRegistry
66 );
67
68 MCAPI void _addTunnel(
69 ::BlockVolume& blocks,
70 ::BiomeSource const& localBiomeSource,
72 ::Random& random,
73 ::ChunkPos const& pos,
74 ::Vec3 const& startPos,
75 ::Vec3 const& originalStartPos,
76 float thickness,
77 float yRot,
78 float xRot,
79 int step,
80 int dist,
81 float yScale,
83 ::BiomeRegistry const& biomeRegistry
84 ) const;
85
86 MCAPI void apply(
87 ::BlockVolume& blocks,
88 ::ChunkPos const& pos,
89 ::BiomeSource const& localBiomeSource,
91 ::Random& random,
92 uint levelSeed,
94 ::BiomeRegistry const& biomeRegistry
95 );
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI bool $_carve(
102 ::BlockVolume& blocks,
103 ::BiomeSource const& localBiomeSource,
105 ::Random&,
106 ::ChunkPos const& pos,
107 ::Vec3 const& startPos,
108 ::Vec3 const& originalStartPos,
109 int x0,
110 int x1,
111 int y0,
112 int y1,
113 int z0,
114 int z1,
115 float rad,
116 float yRad,
117 ::gsl::span<float const> widthRandomization,
119 ::BiomeRegistry const& biomeRegistry
120 ) const;
121
122 MCAPI bool $_isDiggable(::BlockType const& block) const;
123
124
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCNAPI static void** $vftable();
131 // NOLINTEND
132};
Definition BiomeRegistry.h:38
Definition BiomeSource.h:23
Definition BlockType.h:84
Definition BlockVolume.h:13
Definition CanyonFeature.h:18
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