Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI static float getContinents(::TerrainShaper::Point const& point);
30
31 MCNAPI static float getErosion(::TerrainShaper::Point const& point);
32
33 MCNAPI static float getRidges(::TerrainShaper::Point const& point);
34
35 MCNAPI static float getWeirdness(::TerrainShaper::Point const& point);
36 // NOLINTEND
37
38 public:
39 // static variables
40 // NOLINTBEGIN
41 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& CONTINENTS_EXTRACTOR();
42
43 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& EROSION_EXTRACTOR();
44
45 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& RIDGES_EXTRACTOR();
46
47 MCNAPI 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
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionJaggednessSpline(
71 float const jaggednessFactorAtPeakRidgeAndErosionIndex0,
72 float const jaggednessFactorAtPeakRidgeAndErosionIndex1,
73 float const jaggednessFactorAtHighRidgeAndErosionIndex0,
74 float const jaggednessFactorAtHighRidgeAndErosionIndex1
75 );
76
77 MCNAPI 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 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>
90 buildMountainRidgeSplineWithPoints(float modulation, bool saddle);
91
92 MCNAPI static ::TerrainShaper buildOverworld();
93
94 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>
95 buildRidgeJaggednessSpline(float const jaggednessFactorAtPeakRidge, float const jaggednessFactorAtHighRidge);
96
97 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>
98 buildWeirdnessJaggednessSpline(float const jaggednessFactor);
99
100 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> getErosionFactor(float baseValue, bool shatteredTerrain);
101
102 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> ridgeSpline(
103 ::std::string const& name,
104 float valley,
105 float low,
106 float mid,
107 float high,
108 float peaks,
109 float minValleySteepness
110 );
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCNAPI void $dtor();
117 // NOLINTEND
118};
Definition TerrainShaper.h:8
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildWeirdnessJaggednessSpline(float const jaggednessFactor)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildErosionJaggednessSpline(float const jaggednessFactorAtPeakRidgeAndErosionIndex0, float const jaggednessFactorAtPeakRidgeAndErosionIndex1, float const jaggednessFactorAtHighRidgeAndErosionIndex0, float const jaggednessFactorAtHighRidgeAndErosionIndex1)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > getErosionFactor(float baseValue, bool shatteredTerrain)
MCAPI ~TerrainShaper()
static MCAPI ::TerrainShaper buildOverworld()
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildMountainRidgeSplineWithPoints(float modulation, bool saddle)
MCAPI void $dtor()
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildErosionOffsetSpline(::std::string const &name, float lowValley, float hill, float tallHill, float mountainFactor, float plain, float swamp, bool includeExtremeHills, bool saddle)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildRidgeJaggednessSpline(float const jaggednessFactorAtPeakRidge, float const jaggednessFactorAtHighRidge)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > ridgeSpline(::std::string const &name, float valley, float low, float mid, float high, float peaks, float minValleySteepness)
Definition TerrainShaper.h:16
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & RIDGES_EXTRACTOR()
static MCAPI float getContinents(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & CONTINENTS_EXTRACTOR()
static MCAPI float getErosion(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & WEIRDNESS_EXTRACTOR()
static MCAPI float getRidges(::TerrainShaper::Point const &point)
static MCAPI float getWeirdness(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & EROSION_EXTRACTOR()