LeviLamina
Loading...
Searching...
No Matches
TerrainShaper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/biome/ToFloatFunction.h"
7
9public:
10 // TerrainShaper inner types declare
11 // clang-format off
12 struct Point;
13 // clang-format on
14
15 // TerrainShaper inner types define
16 struct Point {
17 public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, float const> mContinents;
21 ::ll::TypedStorage<4, 4, float const> mErosion;
22 ::ll::TypedStorage<4, 4, float const> mRidges;
23 ::ll::TypedStorage<4, 4, float const> mWeirdness;
24 // NOLINTEND
25
26 public:
27 // static functions
28 // NOLINTBEGIN
29 MCAPI static float getContinents(::TerrainShaper::Point const& point);
30
31 MCAPI static float getErosion(::TerrainShaper::Point const& point);
32
33 MCFOLD static float getRidges(::TerrainShaper::Point const& point);
34
35 MCFOLD static float getWeirdness(::TerrainShaper::Point const& point);
36 // NOLINTEND
37
38 public:
39 // static variables
40 // NOLINTBEGIN
41 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>& CONTINENTS_EXTRACTOR();
42
43 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>& EROSION_EXTRACTOR();
44
45 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>& RIDGES_EXTRACTOR();
46
47 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>& WEIRDNESS_EXTRACTOR();
48 // NOLINTEND
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
54 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mOffsetSpline;
55 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mFactorSpline;
56 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mJaggednessSpline;
57 ::ll::TypedStorage<4, 4, float const> GLOBAL_OFFSET;
58 ::ll::TypedStorage<4, 4, float const> FACTOR_SCALER;
59 // NOLINTEND
60
61public:
62 // prevent constructor by default
63 TerrainShaper& operator=(TerrainShaper const&);
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI TerrainShaper(::TerrainShaper const&);
69
70 MCAPI TerrainShaper(
74 );
75
76 MCAPI float offset(float continentalness, float erosion, float weirdness) const;
77
78 MCAPI ~TerrainShaper();
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionJaggednessSpline(
85 float jaggednessFactorAtPeakRidgeAndErosionIndex1,
86 float jaggednessFactorAtHighRidgeAndErosionIndex0,
87 float jaggednessFactorAtPeakRidgeAndErosionIndex0,
88 float jaggednessFactorAtHighRidgeAndErosionIndex1
89 );
90
91 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionOffsetSpline(
92 ::std::string const& name,
93 float lowValley,
94 float hill,
95 float tallHill,
96 float mountainFactor,
97 float plain,
98 float swamp,
99 bool includeExtremeHills,
100 bool saddle
101 );
102
103 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>
104 buildMountainRidgeSplineWithPoints(float modulation, bool saddle);
105
106 MCAPI static ::TerrainShaper buildOverworld();
107
108 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>
109 buildRidgeJaggednessSpline(float jaggednessFactorAtPeakRidge, float jaggednessFactorAtHighRidge);
110
111 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildWeirdnessJaggednessSpline(float jaggednessFactor);
112
113 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> getErosionFactor(float baseValue, bool shatteredTerrain);
114
115 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> ridgeSpline(
116 ::std::string const& name,
117 float valley,
118 float low,
119 float mid,
120 float high,
121 float peaks,
122 float minValleySteepness
123 );
124 // NOLINTEND
125
126public:
127 // constructor thunks
128 // NOLINTBEGIN
129 MCAPI void* $ctor(::TerrainShaper const&);
130
131 MCAPI void* $ctor(
135 );
136 // NOLINTEND
137
138public:
139 // destructor thunk
140 // NOLINTBEGIN
141 MCAPI void $dtor();
142 // NOLINTEND
143};
Definition TerrainShaper.h:8
Definition ToFloatFunction.h:6
Definition TerrainShaper.h:16