LeviLamina
Loading...
Searching...
No Matches
FeatureTerrainAdjustments.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/level/ChunkPos.h"
5
6// auto generated forward declare list
7// clang-format off
10class BlockPos;
11class BoundingBox;
12class BuryDescription;
13class ChunkPos;
14struct BeardKernel;
15// clang-format on
16
18public:
19 // FeatureTerrainAdjustments inner types declare
20 // clang-format off
21 struct Descriptions;
22 // clang-format on
23
24 // FeatureTerrainAdjustments inner types define
25 using TerrainAdjustmentToken = ::std::shared_ptr<bool>;
26
27 struct Descriptions {
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BeardDescription, ::std::weak_ptr<bool>>>> mBeardifiers;
32 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BeardAndShaverDescription, ::std::weak_ptr<bool>>>>
33 mBeardAndShavers;
34 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BuryDescription, ::std::weak_ptr<bool>>>> mBurys;
35 // NOLINTEND
36
37 public:
38 // prevent constructor by default
39 Descriptions& operator=(Descriptions const&);
41
42 public:
43 // member functions
44 // NOLINTBEGIN
46
47 MCAPI ::FeatureTerrainAdjustments::Descriptions& operator=(::FeatureTerrainAdjustments::Descriptions&&);
48
49 MCAPI ~Descriptions();
50 // NOLINTEND
51
52 public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor(::FeatureTerrainAdjustments::Descriptions const&);
56 // NOLINTEND
57
58 public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCAPI void $dtor();
62 // NOLINTEND
63 };
64
65public:
66 // member variables
67 // NOLINTBEGIN
68 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::FeatureTerrainAdjustments::Descriptions>>
69 mDescriptionsToProcess;
70 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mMutex;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCAPI ::std::shared_ptr<bool> _insertDescriptions(
77 ::std::vector<::ChunkPos> const& intersectingChunks,
78 ::std::function<void(::FeatureTerrainAdjustments::Descriptions&, ::std::weak_ptr<bool>)>&& modifyFn
79 );
80
81 MCAPI ::FeatureTerrainAdjustments::Descriptions at(::ChunkPos const& chunkPos);
82
83 MCAPI void garbageCollectDescriptions();
84
85 MCAPI ::std::shared_ptr<bool>
86 setBeardAndShaver(::BoundingBox const& bb, int deltaY, float minBeardWidth, float maxBeardWidth);
87
88 MCAPI ::std::shared_ptr<bool> setBeardifier(::BoundingBox const& bb, int deltaY);
89
90 MCAPI ::std::shared_ptr<bool> setBury(::BoundingBox const& bb);
91
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98 MCAPI static float calculateContribution(
100 ::BlockPos const& currentPos,
101 float noiseValue
102 );
103 // NOLINTEND
104
105public:
106 // static variables
107 // NOLINTBEGIN
108 MCAPI static ::BeardKernel& mBeardKernel();
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCAPI void $dtor();
115 // NOLINTEND
116};
Definition BeardAndShaverDescription.h:14
Definition BeardDescription.h:13
Definition BlockPos.h:17
Definition BoundingBox.h:13
Definition BuryDescription.h:8
Definition ChunkPos.h:11
Definition FeatureTerrainAdjustments.h:17
Definition BeardKernel.h:5
Definition FeatureTerrainAdjustments.h:27