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, 176, ::BlockDescriptor> mTrunkBlockDescriptor;
31 ::ll::TypedStorage<8, 24, ::WeakRef<::IFeature>> mLogDecorationFeature;
32 ::ll::TypedStorage<8, 224, ::TreeHelper::AttachableDecoration> mDecoration;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~FallenTreeTrunk() /*override*/;
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 // destructor thunk
55 // NOLINTBEGIN
56 MCAPI void $dtor();
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI int $getTreeHeight(::Random& random) const;
63
64 MCAPI ::std::optional<::BlockPos> $placeTrunk(
65 ::IBlockWorldGenAPI& target,
66 ::BlockPos const& pos,
67 ::Random& random,
68 int treeHeight,
69 ::RenderParams& renderParams,
70 ::TreeHelper::TreeParams const& treeParams,
71 ::ITreeCanopy const*
72 ) const;
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition BlockPos.h:21
Definition FallenTreeTrunk.h:23
static MCAPI void ** $vftable()
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:19
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:17