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 MCNAPI ::FeatureTerrainAdjustments::Descriptions& operator=(::FeatureTerrainAdjustments::Descriptions&&);
48
49 MCNAPI ~Descriptions();
50 // NOLINTEND
51
52 public:
53 // constructor thunks
54 // NOLINTBEGIN
56 // NOLINTEND
57
58 public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCNAPI 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 MCNAPI ::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 MCNAPI ::FeatureTerrainAdjustments::Descriptions at(::ChunkPos const& chunkPos);
82
84
85 MCNAPI ::std::shared_ptr<bool>
86 setBeardAndShaver(::BoundingBox const& bb, int deltaY, float minBeardWidth, float maxBeardWidth);
87
88 MCNAPI ::std::shared_ptr<bool> setBeardifier(::BoundingBox const& bb, int deltaY);
89
90 MCNAPI ::std::shared_ptr<bool> setBury(::BoundingBox const& bb);
91
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98 MCNAPI static float calculateContribution(
100 ::BlockPos const& currentPos,
101 float noiseValue
102 );
103 // NOLINTEND
104
105public:
106 // static variables
107 // NOLINTBEGIN
108 MCNAPI static ::BeardKernel& mBeardKernel();
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116};
Definition BeardAndShaverDescription.h:10
Definition BeardDescription.h:5
Definition BlockPos.h:18
Definition BoundingBox.h:13
Definition BuryDescription.h:5
Definition ChunkPos.h:11
Definition FeatureTerrainAdjustments.h:17
static MCAPI float calculateContribution(::FeatureTerrainAdjustments::Descriptions const &descriptions, ::BlockPos const &currentPos, float noiseValue)
MCAPI ::std::shared_ptr< bool > setBeardifier(::BoundingBox const &bb, int deltaY)
MCAPI ::std::shared_ptr< bool > _insertDescriptions(::std::vector<::ChunkPos > const &intersectingChunks, ::std::function< void(::FeatureTerrainAdjustments::Descriptions &, ::std::weak_ptr< bool >)> &&modifyFn)
MCAPI void garbageCollectDescriptions()
MCAPI ::std::shared_ptr< bool > setBury(::BoundingBox const &bb)
MCAPI ::std::shared_ptr< bool > setBeardAndShaver(::BoundingBox const &bb, int deltaY, float minBeardWidth, float maxBeardWidth)
MCAPI::FeatureTerrainAdjustments::Descriptions at(::ChunkPos const &chunkPos)
static MCAPI ::BeardKernel & mBeardKernel()
Definition BeardKernel.h:5
Definition FeatureTerrainAdjustments.h:27
MCAPI void * $ctor(::FeatureTerrainAdjustments::Descriptions const &)
MCAPI::FeatureTerrainAdjustments::Descriptions & operator=(::FeatureTerrainAdjustments::Descriptions &&)
MCAPI Descriptions(::FeatureTerrainAdjustments::Descriptions const &)