LeviLamina
Loading...
Searching...
No Matches
CherryTreeTrunk.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/helpers/ITreeTrunk.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
13class ITreeCanopy;
14class Random;
15class RenderParams;
16namespace TreeHelper { struct TreeParams; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 CherryTreeTrunk& operator=(CherryTreeTrunk const&);
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~CherryTreeTrunk() /*override*/ = default;
44
45 // vIndex: 2
46 virtual int getTreeHeight(::Random& random) const /*override*/;
47
48 // vIndex: 1
49 virtual ::std::optional<::BlockPos> placeTrunk(
50 ::IBlockWorldGenAPI& target,
51 ::BlockPos const& pos,
52 ::Random& random,
53 int treeHeight,
54 ::RenderParams& renderParams,
55 ::TreeHelper::TreeParams const& treeParams,
56 ::ITreeCanopy const* canopy
57 ) const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCNAPI ::BlockPos _generateBranch(
64 ::IBlockWorldGenAPI& target,
65 ::Block const& trunkBlock,
66 ::Block const& sidewaysTrunkBlock,
67 ::Random& random,
68 int treeHeight,
69 ::BlockPos origin,
70 ::TreeHelper::TreeParams const& treeParams,
71 ::BlockPos branchDirection,
72 int offsetFromOrigin,
73 bool middleContinuesUpwards
74 ) const;
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCNAPI int $getTreeHeight(::Random& random) const;
81
82 MCNAPI ::std::optional<::BlockPos> $placeTrunk(
83 ::IBlockWorldGenAPI& target,
84 ::BlockPos const& pos,
85 ::Random& random,
86 int treeHeight,
87 ::RenderParams& renderParams,
88 ::TreeHelper::TreeParams const& treeParams,
89 ::ITreeCanopy const* canopy
90 ) const;
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition BlockPos.h:18
Definition Block.h:38
Definition CherryTreeTrunk.h:19
MCAPI::BlockPos _generateBranch(::IBlockWorldGenAPI &target, ::Block const &trunkBlock, ::Block const &sidewaysTrunkBlock, ::Random &random, int treeHeight, ::BlockPos origin, ::TreeHelper::TreeParams const &treeParams, ::BlockPos branchDirection, int offsetFromOrigin, bool middleContinuesUpwards) const
static MCAPI void ** $vftable()
MCAPI ::std::optional<::BlockPos > $placeTrunk(::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::Random &random, int treeHeight, ::RenderParams &renderParams, ::TreeHelper::TreeParams const &treeParams, ::ITreeCanopy const *canopy) const
MCAPI int $getTreeHeight(::Random &random) const
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition Random.h:11
Definition RenderParams.h:30
Definition TreeParams.h:14
Definition Alias.h:14