Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
GrowingPlantFeature.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/IFeature.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13// clang-format on
14
16public:
17 // GrowingPlantFeature inner types declare
18 // clang-format off
21 // clang-format on
22
23 // GrowingPlantFeature inner types define
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 176, ::BlockDescriptor> mBlockDescriptor;
29 ::ll::TypedStorage<4, 4, float> mWeight;
30 // NOLINTEND
31 };
32
34 public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 8, ::IntRange> mRandomNumber;
38 ::ll::TypedStorage<4, 4, float> mWeight;
39 // NOLINTEND
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<8, 24, ::std::vector<::GrowingPlantFeature::WeightedRandomNumberReference>> mHeightDistribution;
46 ::ll::TypedStorage<1, 1, uchar> mGrowthDirection;
47 ::ll::TypedStorage<4, 8, ::IntRange> mAge;
48 ::ll::TypedStorage<8, 24, ::std::vector<::GrowingPlantFeature::WeightedBlockReference>> mBodyBlocks;
49 ::ll::TypedStorage<8, 24, ::std::vector<::GrowingPlantFeature::WeightedBlockReference>> mHeadBlocks;
50 ::ll::TypedStorage<1, 1, bool> mAllowWater;
51 // NOLINTEND
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual ~GrowingPlantFeature() /*override*/ = default;
57
58 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCNAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition BlockPos.h:14
Definition GrowingPlantFeature.h:15
static MCAPI void ** $vftable()
MCAPI ::std::optional<::BlockPos > $place(::IFeature::PlacementContext const &context) const
Definition IFeature.h:18
Definition GrowingPlantFeature.h:24
Definition GrowingPlantFeature.h:33
Definition IFeature.h:26
Definition context.h:5