LeviLamina
Loading...
Searching...
No Matches
MegaTreeTrunk.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/IntRange.h"
7#include "mc/world/level/block/BlockDescriptor.h"
8#include "mc/world/level/levelgen/feature/helpers/ITreeCanopyWrapper.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 BlockPos;
16class ITreeCanopy;
17class Random;
18class RenderParams;
19namespace TreeHelper { struct TreeParams; }
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, int> mTrunkWidth;
27 ::ll::TypedStorage<4, 4, int> mBaseHeight;
28 ::ll::TypedStorage<4, 4, int> mBranchLength;
29 ::ll::TypedStorage<4, 8, ::IntRange> mBranchInterval;
30 ::ll::TypedStorage<4, 4, float> mBranchSlope;
31 ::ll::TypedStorage<4, 4, float> mMinBranchAltitudeFactor;
32 ::ll::TypedStorage<4, 4, float> mMaxBranchAltitudeFactor;
33 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mTrunkBlockDescriptor;
34 ::ll::TypedStorage<8, 8, ::ITreeCanopyWrapper> mBranchCanopy;
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 // vIndex: 0
43 virtual ~MegaTreeTrunk() /*override*/ = default;
44
45 // vIndex: 2
46 virtual int getTreeHeight(::Random& random) const /*override*/;
47
48 // vIndex: 1
49 virtual ::std::optional<::BlockPos> placeTrunk(
50 ::IBlockWorldGenAPI& target,
51 ::BlockPos const& pos,
52 ::Random& random,
53 int treeHeight,
54 ::RenderParams& renderParams,
55 ::TreeHelper::TreeParams const& treeParams,
56 ::ITreeCanopy const* canopy
57 ) const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI bool _prepareSpawn(
64 ::IBlockWorldGenAPI& target,
65 ::BlockPos const& pos,
66 int treeHeight,
67 ::TreeHelper::TreeParams const& treeParams
68 ) const;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI int $getTreeHeight(::Random& random) const;
75
76 MCAPI ::std::optional<::BlockPos> $placeTrunk(
77 ::IBlockWorldGenAPI& target,
78 ::BlockPos const& pos,
79 ::Random& random,
80 int treeHeight,
81 ::RenderParams& renderParams,
82 ::TreeHelper::TreeParams const& treeParams,
83 ::ITreeCanopy const* canopy
84 ) const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BlockPos.h:17
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition MegaTreeTrunk.h:22
static MCAPI void ** $vftable()
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:14