LeviLamina
Loading...
Searching...
No Matches
CherryTreeCanopy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/ChanceInformation.h"
7#include "mc/util/IntRange.h"
8#include "mc/world/level/block/BlockDescriptor.h"
9#include "mc/world/level/levelgen/feature/helpers/ITreeCanopy.h"
10
11// auto generated forward declare list
12// clang-format off
13class Block;
14class BlockPos;
16class Random;
17class RenderParams;
18namespace TreeHelper { struct TreeParams; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 184, ::BlockDescriptor> mLeavesBlockDescriptor;
26 ::ll::TypedStorage<4, 8, ::IntRange> mHeight;
27 ::ll::TypedStorage<4, 8, ::IntRange> mRadius;
28 ::ll::TypedStorage<4, 4, int> mTrunkWidth;
29 ::ll::TypedStorage<4, 12, ::ChanceInformation> mWideBottomLayerHoleChance;
30 ::ll::TypedStorage<4, 12, ::ChanceInformation> mCornerHoleChance;
31 ::ll::TypedStorage<4, 12, ::ChanceInformation> mHangingLeavesChance;
32 ::ll::TypedStorage<4, 12, ::ChanceInformation> mHangingLeavesExtensionChance;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~CherryTreeCanopy() /*override*/ = default;
39
40 virtual ::std::optional<::BlockPos> placeCanopy(
41 ::IBlockWorldGenAPI& target,
42 ::BlockPos const& pos,
43 ::Random& random,
45 ::TreeHelper::TreeParams const& treeParams,
46 ::std::vector<::BlockPos> const&
47 ) const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI void _placeLayerOfLeaves(
54 ::IBlockWorldGenAPI& target,
55 ::Random& random,
56 ::BlockPos const& canopyPos,
57 int layerOffset,
58 ::Block const& leavesBlock,
59 int radius,
60 ::TreeHelper::TreeParams const& treeParams
61 ) const;
62
63 MCAPI void _placeLayerOfLeavesWithHangingLeavesBelow(
64 ::IBlockWorldGenAPI& target,
65 ::Random& random,
66 ::BlockPos const& canopyPos,
67 int layerOffset,
68 ::Block const& leavesBlock,
69 int radius,
70 ::TreeHelper::TreeParams const& treeParams
71 ) const;
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI ::std::optional<::BlockPos> $placeCanopy(
78 ::IBlockWorldGenAPI& target,
79 ::BlockPos const& pos,
80 ::Random& random,
82 ::TreeHelper::TreeParams const& treeParams,
83 ::std::vector<::BlockPos> const&
84 ) const;
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition BlockPos.h:19
Definition Block.h:43
Definition CherryTreeCanopy.h:21
static MCAPI void ** $vftable()
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition Random.h:10
Definition RenderParams.h:30
Definition TreeParams.h:14