LeviLamina
Loading...
Searching...
No Matches
OreFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/level/block/Block.h"
5#include "mc/world/level/block/BlockLegacy.h"
6#include "mc/world/level/levelgen/feature/ReplaceRule.h"
7
8// auto generated inclusion list
9#include "mc/deps/core/threading/InstancedThreadLocal.h"
10#include "mc/world/level/levelgen/feature/IFeature.h"
11
12// auto generated forward declare list
13// clang-format off
14class Block;
15class BlockLegacy;
16class BlockPos;
17struct ReplaceRule;
18// clang-format on
19
20class OreFeature : public ::IFeature {
21public:
22 // OreFeature inner types declare
23 // clang-format off
24 struct Helper;
26 struct SphereData;
27 // clang-format on
28
29 // OreFeature inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::Block const*, ::std::vector<::BlockLegacy const*>>>>
35 mRules;
36 // NOLINTEND
37
38 public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI void setRules(::std::vector<::ReplaceRule> const& replaceRules);
42 // NOLINTEND
43 };
44
45 struct SphereData {
46 public:
47 // member variables
48 // NOLINTBEGIN
52 // NOLINTEND
53
54 public:
55 // prevent constructor by default
56 SphereData& operator=(SphereData const&);
57 SphereData(SphereData const&);
58 SphereData();
59 };
60
61 struct Helper {
62 public:
63 // member variables
64 // NOLINTBEGIN
70 // NOLINTEND
71
72 public:
73 // prevent constructor by default
74 Helper& operator=(Helper const&);
75 Helper(Helper const&);
76 Helper();
77 };
78
79public:
80 // member variables
81 // NOLINTBEGIN
82 ::ll::TypedStorage<4, 4, int> mCount;
83 ::ll::TypedStorage<4, 4, float> mCountf;
84 ::ll::TypedStorage<4, 4, float> mCountfInv;
85 ::ll::TypedStorage<4, 4, float> mDiscardChanceOnAirExposure;
86 ::ll::TypedStorage<8, 24, ::std::vector<::ReplaceRule>> mReplaceRules;
87 ::ll::TypedStorage<
88 8,
89 168,
91 mHelper;
92 // NOLINTEND
93
94public:
95 // virtual functions
96 // NOLINTBEGIN
97 // vIndex: 0
98 virtual ~OreFeature() /*override*/ = default;
99
100 // vIndex: 1
101 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCAPI static void** $vftable();
120 // NOLINTEND
121};
Definition InstancedThreadLocal.h:8
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition Block.h:36
Definition IFeature.h:13
Definition OreFeature.h:20
Definition IFeature.h:21
Definition OreFeature.h:61
Definition OreFeature.h:30
Definition OreFeature.h:45
Definition ReplaceRule.h:10
Definition context.h:5
Definition Alias.h:14