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 // vIndex: 0
61 virtual ~RandomSpreadTreeCanopy() /*override*/ = default;
62
63 // vIndex: 1
64 virtual ::std::optional<::BlockPos> placeCanopy(
65 ::IBlockWorldGenAPI& target,
66 ::BlockPos const& pos,
67 ::Random& random,
68 ::RenderParams& renderParams,
69 ::TreeHelper::TreeParams const& treeParams,
70 ::std::vector<::BlockPos> const& attachmentPositions
71 ) const /*override*/;
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,
81 ::RenderParams& renderParams,
82 ::TreeHelper::TreeParams const& treeParams,
83 ::std::vector<::BlockPos> const& attachmentPositions
84 ) const;
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BlockPos.h:17
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