Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RandomSpreadTreeCanopy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/IntRange.h"
7#include "mc/world/level/block/BlockDescriptor.h"
8#include "mc/world/level/levelgen/feature/helpers/ITreeCanopy.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
14class Random;
15class RenderParams;
16namespace TreeHelper { struct TreeParams; }
17// clang-format on
18
20public:
21 // RandomSpreadTreeCanopy inner types declare
22 // clang-format off
24 // clang-format on
25
26 // RandomSpreadTreeCanopy inner types define
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 176, ::BlockDescriptor> mBlockDescriptor;
32 ::ll::TypedStorage<4, 4, float> mWeight;
33 // NOLINTEND
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<4, 8, ::IntRange> mCanopyHeight;
40 ::ll::TypedStorage<4, 8, ::IntRange> mCanopyRadius;
41 ::ll::TypedStorage<4, 4, int> mLeafPlacementAttempts;
42 ::ll::TypedStorage<8, 24, ::std::vector<::RandomSpreadTreeCanopy::WeightedBlockReference>> mLeavesBlockDescriptors;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~RandomSpreadTreeCanopy() /*override*/ = default;
49
50 virtual ::std::optional<::BlockPos> placeCanopy(
51 ::IBlockWorldGenAPI& target,
52 ::BlockPos const&,
54 ::Random& random,
56 ::TreeHelper::TreeParams const& treeParams,
57 int,
58 ::std::vector<::ITreeCanopy::AttachmentInfo> const& attachmentInfos
59 ) const /*override*/;
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCNAPI ::std::optional<::BlockPos> $placeCanopy(
66 ::IBlockWorldGenAPI& target,
67 ::BlockPos const&,
69 ::Random& random,
71 ::TreeHelper::TreeParams const& treeParams,
72 int,
73 ::std::vector<::ITreeCanopy::AttachmentInfo> const& attachmentInfos
74 ) const;
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition BlockPos.h:14
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:16
Definition RandomSpreadTreeCanopy.h:19
MCAPI ::std::optional<::BlockPos > $placeCanopy(::IBlockWorldGenAPI &target, ::BlockPos const &, ::ITreeCanopy::BranchSize const &, ::Random &random, ::RenderParams &, ::TreeHelper::TreeParams const &treeParams, int, ::std::vector<::ITreeCanopy::AttachmentInfo > const &attachmentInfos) const
static MCAPI void ** $vftable()
Definition Random.h:10
Definition RenderParams.h:29
Definition ITreeCanopy.h:25
Definition RandomSpreadTreeCanopy.h:27
Definition TreeParams.h:17