LeviLamina
Loading...
Searching...
No Matches
MangroveTreeTrunk.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
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 MangroveTreeTrunk& operator=(MangroveTreeTrunk const&);
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~MangroveTreeTrunk() /*override*/ = default;
46
47 // vIndex: 2
48 virtual int getTreeHeight(::Random& random) const /*override*/;
49
50 // vIndex: 1
51 virtual ::std::optional<::BlockPos> placeTrunk(
52 ::IBlockWorldGenAPI& target,
53 ::BlockPos const& pos,
54 ::Random& random,
55 int treeHeight,
56 ::RenderParams& renderParams,
57 ::TreeHelper::TreeParams const& treeParams,
58 ::ITreeCanopy const* canopy
59 ) const /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCNAPI void _placeBranch(
66 ::IBlockWorldGenAPI& target,
67 ::std::vector<::BlockPos>* canopyAttachmentPositions,
68 ::Random& random,
69 int treeHeight,
71 ::TreeHelper::TreeParams const& treeParams,
72 ::BlockPos& logPos,
73 int currentHeight,
74 uchar branchDir,
75 int branchPos,
76 int branchSteps,
77 ::Block const* trunkBlock
78 ) const;
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCNAPI int $getTreeHeight(::Random& random) const;
85
86 MCNAPI ::std::optional<::BlockPos> $placeTrunk(
87 ::IBlockWorldGenAPI& target,
88 ::BlockPos const& pos,
89 ::Random& random,
90 int treeHeight,
91 ::RenderParams& renderParams,
92 ::TreeHelper::TreeParams const& treeParams,
93 ::ITreeCanopy const* canopy
94 ) const;
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftable();
101 // NOLINTEND
102};
Definition BlockPos.h:18
Definition Block.h:38
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition ITreeTrunk.h:15
Definition MangroveTreeTrunk.h:19
MCAPI ::std::optional<::BlockPos > $placeTrunk(::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::Random &random, int treeHeight, ::RenderParams &renderParams, ::TreeHelper::TreeParams const &treeParams, ::ITreeCanopy const *canopy) const
static MCAPI void ** $vftable()
MCAPI void _placeBranch(::IBlockWorldGenAPI &target, ::std::vector<::BlockPos > *canopyAttachmentPositions, ::Random &random, int treeHeight, ::RenderParams &, ::TreeHelper::TreeParams const &treeParams, ::BlockPos &logPos, int currentHeight, uchar branchDir, int branchPos, int branchSteps, ::Block const *trunkBlock) const
MCAPI int $getTreeHeight(::Random &random) const
Definition Random.h:11
Definition RenderParams.h:30
Definition TreeParams.h:14
Definition Alias.h:14