LeviLamina
Loading...
Searching...
No Matches
SimpleTreeTrunk.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/ITreeTrunk.h"
9#include "mc/world/level/levelgen/feature/helpers/tree_helper/AttachableDecoration.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
15class ITreeCanopy;
16class Random;
17class RenderParams;
18namespace TreeHelper { struct TreeParams; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 4, int> mSubmergedDepth;
26 ::ll::TypedStorage<4, 8, ::IntRange> mHeight;
27 ::ll::TypedStorage<4, 8, ::IntRange> mHeightModifier;
28 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mTrunkBlockDescriptor;
29 ::ll::TypedStorage<8, 208, ::TreeHelper::AttachableDecoration> mDecoration;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~SimpleTreeTrunk() /*override*/ = default;
36
37 virtual int getTreeHeight(::Random& random) const /*override*/;
38
39 virtual ::std::optional<::BlockPos> placeTrunk(
40 ::IBlockWorldGenAPI& target,
41 ::BlockPos const& pos,
42 ::Random& random,
43 int treeHeight,
44 ::RenderParams& renderParams,
45 ::TreeHelper::TreeParams const& treeParams,
46 ::ITreeCanopy const* canopy
47 ) const /*override*/;
48 // NOLINTEND
49
50public:
51 // virtual function thunks
52 // NOLINTBEGIN
53 MCAPI int $getTreeHeight(::Random& random) const;
54
55 MCAPI ::std::optional<::BlockPos> $placeTrunk(
56 ::IBlockWorldGenAPI& target,
57 ::BlockPos const& pos,
58 ::Random& random,
59 int treeHeight,
60 ::RenderParams& renderParams,
61 ::TreeHelper::TreeParams const& treeParams,
62 ::ITreeCanopy const* canopy
63 ) const;
64
65
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
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 SimpleTreeTrunk.h:21
static MCAPI void ** $vftable()
Definition TreeParams.h:14