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, 176, ::BlockDescriptor> mTrunkBlockDescriptor;
38 ::ll::TypedStorage<8, 8, ::ITreeCanopyWrapper> mBranchCanopy;
39 ::ll::TypedStorage<8, 224, ::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 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI int $getTreeHeight(::Random& random) const;
65
66 MCAPI ::std::optional<::BlockPos> $placeTrunk(
67 ::IBlockWorldGenAPI& target,
68 ::BlockPos const& pos,
69 ::Random& random,
70 int treeHeight,
71 ::RenderParams& renderParams,
72 ::TreeHelper::TreeParams const& treeParams,
73 ::ITreeCanopy const* canopy
74 ) const;
75
76
77 // NOLINTEND
78};
Definition AcaciaTreeTrunk.h:23
Definition BlockPos.h:17
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition Random.h:10
Definition RenderParams.h:29
Definition TreeParams.h:17