LeviLamina
Loading...
Searching...
No Matches
LegacyTreeFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/world/level/levelgen/feature/IFeature.h"
8#include "mc/world/level/levelgen/synth/PerlinSimplexNoise.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class FeatureRegistry;
14class Random;
15// clang-format on
16
18public:
19 // LegacyTreeFeature inner types define
20 enum class Type : int {
21 BambooJungle = 0,
22 BirchForest = 1,
23 BirchForestMutated = 2,
24 ExtremeHillsPlusTrees = 3,
25 FlowerForest = 4,
26 Meadow = 5,
27 Forest = 6,
28 Ice = 7,
29 Jungle = 8,
30 JungleEdge = 9,
31 MesaForest = 10,
32 Plains = 11,
33 Savanna = 12,
34 SavannaMutated = 13,
35 Taiga = 14,
36 TaigaMega = 15,
37 TaigaMegaSpruce = 16,
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<8, 40, ::PerlinSimplexNoise const> mBiomeInfoNoise;
44 ::ll::TypedStorage<8, 24, ::WeakRef<::IFeature>> mTallGrassFeature;
45 ::ll::TypedStorage<4, 4, float> mTreeChance;
46 ::ll::TypedStorage<8, 24, ::std::vector<::WeakRef<::IFeature>>> mFeatureRefs;
47 ::ll::TypedStorage<8, 64, ::std::function<::WeakRef<::IFeature>(::Random&)>> mGetTreeFeature;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 // vIndex: 1
58 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
59
60 // vIndex: 0
61 virtual ~LegacyTreeFeature() /*override*/ = default;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI
68 LegacyTreeFeature(::LegacyTreeFeature::Type placementType, ::FeatureRegistry& registry, bool shouldPlaceLeafLitter);
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(::LegacyTreeFeature::Type placementType, ::FeatureRegistry& registry, bool shouldPlaceLeafLitter);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
Definition BlockPos.h:17
Definition FeatureRegistry.h:18
Definition IFeature.h:18
Definition LegacyTreeFeature.h:17
static MCAPI void ** $vftable()
Definition Random.h:10
Definition IFeature.h:26
Definition context.h:5