LeviLamina
Loading...
Searching...
No Matches
SurfaceMaterialAdjustmentAttributes.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/molang/ExpressionNode.h"
7#include "mc/util/molang/ExpressionOp.h"
8#include "mc/world/level/biome/components/BiomeComponentBase.h"
9#include "mc/world/level/biome/components/SurfaceMaterialAttributes.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
15class RenderParams;
17// clang-format on
18
20public:
21 // SurfaceMaterialAdjustmentAttributes inner types declare
22 // clang-format off
23 struct Element;
24 // clang-format on
25
26 // SurfaceMaterialAdjustmentAttributes inner types define
27 struct Element {
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<4, 4, float> mNoiseFreqScale;
32 ::ll::TypedStorage<4, 4, float> mNoiseLowerBound;
33 ::ll::TypedStorage<4, 4, float> mNoiseUpperBound;
34 ::ll::TypedStorage<8, 16, ::ExpressionNode> mHeightMin;
35 ::ll::TypedStorage<8, 16, ::ExpressionNode> mHeightMax;
36 ::ll::TypedStorage<8, 56, ::SurfaceMaterialAttributes> mAdjustedMaterials;
37 // NOLINTEND
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<8, 24, ::std::vector<::SurfaceMaterialAdjustmentAttributes::Element>> mAdjustments;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ::SurfaceMaterialAdjustmentEvaluated evaluateAdjustments(
50 ::RenderParams& molangParams,
51 ::PerlinSimplexNoise const& noise,
52 ::BlockPos const& pos,
53 int heightMin,
54 int heightMax
55 ) const;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static void
62 parseExpressionNodeFloat(::ExpressionOp op, ::std::string const& data, ::ExpressionNode& node, float defaultValue);
63 // NOLINTEND
64};
Definition BlockPos.h:17
Definition ExpressionNode.h:35
Definition PerlinSimplexNoise.h:11
Definition RenderParams.h:29
Definition BiomeComponentBase.h:5
Definition SurfaceMaterialAdjustmentAttributes.h:27
Definition SurfaceMaterialAdjustmentAttributes.h:19
Definition SurfaceMaterialAdjustmentEvaluated.h:8