Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
FancyTreeCanopy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockDescriptor.h"
7#include "mc/world/level/levelgen/feature/helpers/ITreeCanopy.h"
8
9// auto generated forward declare list
10// clang-format off
11class Block;
12class BlockPos;
14class Random;
15class RenderParams;
16namespace TreeHelper { struct TreeParams; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, int> mHeight;
24 ::ll::TypedStorage<4, 4, int> mRadius;
25 ::ll::TypedStorage<8, 176, ::BlockDescriptor> mLeavesBlockDescriptor;
26 // NOLINTEND
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~FancyTreeCanopy() /*override*/ = default;
32
33 virtual ::std::optional<::BlockPos> placeCanopy(
34 ::IBlockWorldGenAPI& target,
35 ::BlockPos const& pos,
36 ::ITreeCanopy::BranchSize const& trunkSize,
37 ::Random&,
39 ::TreeHelper::TreeParams const& treeParams,
40 int,
41 ::std::vector<::ITreeCanopy::AttachmentInfo> const&
42 ) const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCNAPI ::std::optional<::BlockPos> _fillLayer(
49 ::IBlockWorldGenAPI& target,
50 ::BlockPos const& pos,
51 ::Block const& leavesBlock,
52 int radius,
53 ::TreeHelper::TreeParams const& treeParams
54 ) const;
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCNAPI ::std::optional<::BlockPos> $placeCanopy(
61 ::IBlockWorldGenAPI& target,
62 ::BlockPos const& pos,
63 ::ITreeCanopy::BranchSize const& trunkSize,
64 ::Random&,
66 ::TreeHelper::TreeParams const& treeParams,
67 int,
68 ::std::vector<::ITreeCanopy::AttachmentInfo> const&
69 ) const;
70
71
72 // NOLINTEND
73};
Definition BlockPos.h:14
Definition Block.h:42
Definition FancyTreeCanopy.h:19
MCAPI ::std::optional<::BlockPos > _fillLayer(::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::Block const &leavesBlock, int radius, ::TreeHelper::TreeParams const &treeParams) const
MCAPI ::std::optional<::BlockPos > $placeCanopy(::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::ITreeCanopy::BranchSize const &trunkSize, ::Random &, ::RenderParams &, ::TreeHelper::TreeParams const &treeParams, int, ::std::vector<::ITreeCanopy::AttachmentInfo > const &) const
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:16
Definition Random.h:10
Definition RenderParams.h:29
Definition ITreeCanopy.h:25
Definition TreeParams.h:17