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