LeviLamina
Loading...
Searching...
No Matches
MangroveTreeTrunk.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/ITreeTrunk.h"
10#include "mc/world/level/levelgen/feature/helpers/tree_helper/AttachableDecoration.h"
11
12// auto generated forward declare list
13// clang-format off
14class Block;
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> mHeightRandA;
30 ::ll::TypedStorage<4, 4, int> mHeightRandB;
31 ::ll::TypedStorage<4, 8, ::IntRange> mBranchLength;
32 ::ll::TypedStorage<4, 8, ::IntRange> mBranchSteps;
33 ::ll::TypedStorage<4, 12, ::ChanceInformation> mBranchChance;
34 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mTrunkBlockDescriptor;
35 ::ll::TypedStorage<8, 208, ::TreeHelper::AttachableDecoration> mDecoration;
36 ::ll::TypedStorage<8, 24, ::std::vector<int>> mHeightIntervals;
37 // NOLINTEND
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~MangroveTreeTrunk() /*override*/ = default;
43
44 virtual int getTreeHeight(::Random& random) const /*override*/;
45
46 virtual ::std::optional<::BlockPos> placeTrunk(
47 ::IBlockWorldGenAPI& target,
48 ::BlockPos const& pos,
49 ::Random& random,
50 int treeHeight,
51 ::RenderParams& renderParams,
52 ::TreeHelper::TreeParams const& treeParams,
53 ::ITreeCanopy const* canopy
54 ) const /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI void _placeBranch(
61 ::IBlockWorldGenAPI& target,
62 ::std::vector<::BlockPos>* canopyAttachmentPositions,
63 ::Random& random,
64 int treeHeight,
66 ::TreeHelper::TreeParams const& treeParams,
67 ::BlockPos& logPos,
68 int currentHeight,
69 uchar branchDir,
70 int branchPos,
71 int branchSteps,
72 ::Block const* trunkBlock
73 ) const;
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI int $getTreeHeight(::Random& random) const;
80
81 MCAPI ::std::optional<::BlockPos> $placeTrunk(
82 ::IBlockWorldGenAPI& target,
83 ::BlockPos const& pos,
84 ::Random& random,
85 int treeHeight,
86 ::RenderParams& renderParams,
87 ::TreeHelper::TreeParams const& treeParams,
88 ::ITreeCanopy const* canopy
89 ) const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition BlockPos.h:19
Definition Block.h:43
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition MangroveTreeTrunk.h:23
static MCAPI void ** $vftable()
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:14