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 // vIndex: 0
39 virtual ~CherryTreeCanopy() /*override*/ = default;
40
41 // vIndex: 1
42 virtual ::std::optional<::BlockPos> placeCanopy(
43 ::IBlockWorldGenAPI& target,
44 ::BlockPos const& pos,
45 ::Random& random,
47 ::TreeHelper::TreeParams const& treeParams,
48 ::std::vector<::BlockPos> const&
49 ) const /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI void _placeLayerOfLeaves(
56 ::IBlockWorldGenAPI& target,
57 ::Random& random,
58 ::BlockPos const& canopyPos,
59 int layerOffset,
60 ::Block const& leavesBlock,
61 int radius,
62 ::TreeHelper::TreeParams const& treeParams
63 ) const;
64
65 MCAPI void _placeLayerOfLeavesWithHangingLeavesBelow(
66 ::IBlockWorldGenAPI& target,
67 ::Random& random,
68 ::BlockPos const& canopyPos,
69 int layerOffset,
70 ::Block const& leavesBlock,
71 int radius,
72 ::TreeHelper::TreeParams const& treeParams
73 ) const;
74
75 MCAPI bool _shouldSkipPosition(::Random& random, ::BlockPos const& pos, int radius) const;
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI ::std::optional<::BlockPos> $placeCanopy(
82 ::IBlockWorldGenAPI& target,
83 ::BlockPos const& pos,
84 ::Random& random,
86 ::TreeHelper::TreeParams const& treeParams,
87 ::std::vector<::BlockPos> const&
88 ) const;
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition BlockPos.h:17
Definition Block.h:37
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