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, 184, ::BlockDescriptor> mBlockDescriptor;
32 ::ll::TypedStorage<4, 4, float> mWeight;
33 // NOLINTEND
34
35 public:
36 // member functions
37 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // destructor thunk
43 // NOLINTBEGIN
44 MCFOLD void $dtor();
45 // NOLINTEND
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
51 ::ll::TypedStorage<4, 8, ::IntRange> mCanopyHeight;
52 ::ll::TypedStorage<4, 8, ::IntRange> mCanopyRadius;
53 ::ll::TypedStorage<4, 4, int> mLeafPlacementAttempts;
54 ::ll::TypedStorage<8, 24, ::std::vector<::RandomSpreadTreeCanopy::WeightedBlockReference>> mLeavesBlockDescriptors;
55 // NOLINTEND
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual ~RandomSpreadTreeCanopy() /*override*/ = default;
61
62 virtual ::std::optional<::BlockPos> placeCanopy(
63 ::IBlockWorldGenAPI& target,
64 ::BlockPos const& pos,
65 ::Random& random,
66 ::RenderParams& renderParams,
67 ::TreeHelper::TreeParams const& treeParams,
68 ::std::vector<::BlockPos> const& attachmentPositions
69 ) const /*override*/;
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI ::std::optional<::BlockPos> $placeCanopy(
76 ::IBlockWorldGenAPI& target,
77 ::BlockPos const& pos,
78 ::Random& random,
79 ::RenderParams& renderParams,
80 ::TreeHelper::TreeParams const& treeParams,
81 ::std::vector<::BlockPos> const& attachmentPositions
82 ) const;
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BlockPos.h:19
Definition IBlockWorldGenAPI.h:25
Definition ITreeCanopy.h:14
Definition RandomSpreadTreeCanopy.h:19
static MCAPI void ** $vftable()
Definition Random.h:10
Definition RenderParams.h:30
Definition RandomSpreadTreeCanopy.h:27
Definition TreeParams.h:14