LeviLamina
Loading...
Searching...
No Matches
FallenTreeTrunk.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.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 BlockPos;
16class IFeature;
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, 8, ::IntRange> mLogLength;
28 ::ll::TypedStorage<4, 8, ::IntRange> mHeightModifier;
29 ::ll::TypedStorage<4, 8, ::IntRange> mStumpHeight;
30 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mTrunkBlockDescriptor;
31 ::ll::TypedStorage<8, 24, ::WeakRef<::IFeature>> mLogDecorationFeature;
32 ::ll::TypedStorage<8, 208, ::TreeHelper::AttachableDecoration> mDecoration;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~FallenTreeTrunk() /*override*/ = default;
39
40 virtual int getTreeHeight(::Random& random) const /*override*/;
41
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*
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*
66 ) const;
67
68
69 // NOLINTEND
70
71public:
72 // vftables
73 // NOLINTBEGIN
74 MCNAPI static void** $vftable();
75 // NOLINTEND
76};
Definition BlockPos.h:19
Definition FallenTreeTrunk.h:23
static MCAPI void ** $vftable()
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:18
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:14