LeviLamina
Loading...
Searching...
No Matches
WeightedRandomFeature.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
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12// clang-format on
13
14class WeightedRandomFeature : public ::IFeature {
15public:
16 // WeightedRandomFeature inner types declare
17 // clang-format off
19 // clang-format on
20
21 // WeightedRandomFeature inner types define
23 public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 24, ::WeakRef<::IFeature>> mFeature;
27 ::ll::TypedStorage<4, 4, float> mWeight;
28 // NOLINTEND
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 24, ::std::vector<::WeightedRandomFeature::WeightedFeatureReference>> mFeatureReferences;
35 // NOLINTEND
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~WeightedRandomFeature() /*override*/ = default;
41
42 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI WeightedRandomFeature();
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor();
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
61
62
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition BlockPos.h:21
Definition IFeature.h:19
static MCAPI void ** $vftable()
Definition IFeature.h:27
Definition WeightedRandomFeature.h:22
Definition context.h:5