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 // vIndex: 0
36 virtual ~SimpleTreeTrunk() /*override*/ = default;
37
38 // vIndex: 2
39 virtual int getTreeHeight(::Random& random) const /*override*/;
40
41 // vIndex: 1
42 virtual ::std::optional<::BlockPos> placeTrunk(
43 ::IBlockWorldGenAPI& target,
44 ::BlockPos const& pos,
45 ::Random& random,
46 int treeHeight,
47 ::RenderParams& renderParams,
48 ::TreeHelper::TreeParams const& treeParams,
49 ::ITreeCanopy const* canopy
50 ) const /*override*/;
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCAPI int $getTreeHeight(::Random& random) const;
57
58 MCAPI ::std::optional<::BlockPos> $placeTrunk(
59 ::IBlockWorldGenAPI& target,
60 ::BlockPos const& pos,
61 ::Random& random,
62 int treeHeight,
63 ::RenderParams& renderParams,
64 ::TreeHelper::TreeParams const& treeParams,
65 ::ITreeCanopy const* canopy
66 ) const;
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition BlockPos.h:17
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