LeviLamina
Loading...
Searching...
No Matches
AcaciaTreeTrunk.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/ChanceInformation.h"
7#include "mc/util/IntRange.h"
8#include "mc/world/level/block/BlockDescriptor.h"
9#include "mc/world/level/levelgen/feature/helpers/ITreeCanopyWrapper.h"
10#include "mc/world/level/levelgen/feature/helpers/ITreeTrunk.h"
11#include "mc/world/level/levelgen/feature/helpers/tree_helper/AttachableDecoration.h"
12
13// auto generated forward declare list
14// clang-format off
15class BlockPos;
17class ITreeCanopy;
18class Random;
19class RenderParams;
20namespace TreeHelper { struct TreeParams; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, int> mBaseHeight;
28 ::ll::TypedStorage<4, 4, int> mTrunkWidth;
29 ::ll::TypedStorage<4, 4, int> mMinHeightForCanopy;
30 ::ll::TypedStorage<4, 8, ::IntRange> mLeanHeight;
31 ::ll::TypedStorage<4, 8, ::IntRange> mLeanSteps;
32 ::ll::TypedStorage<4, 8, ::IntRange> mLeanLength;
33 ::ll::TypedStorage<1, 1, bool> mAllowDiagonalGrowth;
34 ::ll::TypedStorage<4, 8, ::IntRange> mBranchLength;
35 ::ll::TypedStorage<4, 8, ::IntRange> mBranchPos;
36 ::ll::TypedStorage<4, 12, ::ChanceInformation> mBranchChance;
37 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mTrunkBlockDescriptor;
38 ::ll::TypedStorage<8, 8, ::ITreeCanopyWrapper> mBranchCanopy;
39 ::ll::TypedStorage<8, 208, ::TreeHelper::AttachableDecoration> mDecoration;
40 ::ll::TypedStorage<8, 24, ::std::vector<int>> mHeightIntervals;
41 // NOLINTEND
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual ~AcaciaTreeTrunk() /*override*/ = default;
47
48 virtual int getTreeHeight(::Random& random) const /*override*/;
49
50 virtual ::std::optional<::BlockPos> placeTrunk(
51 ::IBlockWorldGenAPI& target,
52 ::BlockPos const& pos,
53 ::Random& random,
54 int treeHeight,
55 ::RenderParams& renderParams,
56 ::TreeHelper::TreeParams const& treeParams,
57 ::ITreeCanopy const* canopy
58 ) const /*override*/;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI void _placeLeaningBranches(
65 ::IBlockWorldGenAPI& target,
66 ::BlockPos const& pos,
67 ::BlockPos const& branchPos,
68 ::Random& random,
69 ::RenderParams& renderParams,
70 int treeHeight,
71 int leanDirection,
72 int leanHeight,
73 ::TreeHelper::TreeParams const& treeParams
74 ) const;
75
76 MCAPI void _placeVerticalBranches(
77 ::IBlockWorldGenAPI& target,
78 ::BlockPos const& pos,
79 ::BlockPos const& branchPos,
80 ::Random& random,
81 ::RenderParams& renderParams,
82 ::TreeHelper::TreeParams const& treeParams
83 ) const;
84 // NOLINTEND
85
86public:
87 // virtual function thunks
88 // NOLINTBEGIN
89 MCAPI int $getTreeHeight(::Random& random) const;
90
91 MCAPI ::std::optional<::BlockPos> $placeTrunk(
92 ::IBlockWorldGenAPI& target,
93 ::BlockPos const& pos,
94 ::Random& random,
95 int treeHeight,
96 ::RenderParams& renderParams,
97 ::TreeHelper::TreeParams const& treeParams,
98 ::ITreeCanopy const* canopy
99 ) const;
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition AcaciaTreeTrunk.h:23
static MCAPI void ** $vftable()
Definition BlockPos.h:19
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:14