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 // member functions
63 // NOLINTBEGIN
64 MCAPI ~TerrainShaper();
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionJaggednessSpline(
71 float const jaggednessFactorAtPeakRidgeAndErosionIndex0,
72 float const jaggednessFactorAtPeakRidgeAndErosionIndex1,
73 float const jaggednessFactorAtHighRidgeAndErosionIndex0,
74 float const jaggednessFactorAtHighRidgeAndErosionIndex1
75 );
76
77 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionOffsetSpline(
78 ::std::string const& name,
79 float lowValley,
80 float hill,
81 float tallHill,
82 float mountainFactor,
83 float plain,
84 float swamp,
85 bool includeExtremeHills,
86 bool saddle
87 );
88
89 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>
90 buildMountainRidgeSplineWithPoints(float modulation, bool saddle);
91
92 MCAPI static ::TerrainShaper buildOverworld();
93
94 MCAPI static ::ToFloatFunction<::TerrainShaper::Point>
95 buildRidgeJaggednessSpline(float const jaggednessFactorAtPeakRidge, float const jaggednessFactorAtHighRidge);
96
97 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> buildWeirdnessJaggednessSpline(float const jaggednessFactor);
98
99 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> getErosionFactor(float baseValue, bool shatteredTerrain);
100
101 MCAPI static ::ToFloatFunction<::TerrainShaper::Point> ridgeSpline(
102 ::std::string const& name,
103 float valley,
104 float low,
105 float mid,
106 float high,
107 float peaks,
108 float minValleySteepness
109 );
110 // NOLINTEND
111
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115 MCAPI void $dtor();
116 // NOLINTEND
117};
Definition TerrainShaper.h:8
Definition TerrainShaper.h:16