Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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
11
class
BlockPos
;
12
// clang-format on
13
14
class
WeightedRandomFeature
:
public
::IFeature
{
15
public
:
16
// WeightedRandomFeature inner types declare
17
// clang-format off
18
struct
WeightedFeatureReference
;
19
// clang-format on
20
21
// WeightedRandomFeature inner types define
22
struct
WeightedFeatureReference
{
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
31
public
:
32
// member variables
33
// NOLINTBEGIN
34
::ll::TypedStorage<8, 24, ::std::vector<::WeightedRandomFeature::WeightedFeatureReference>> mFeatureReferences;
35
// NOLINTEND
36
37
public
:
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
45
public
:
46
// virtual function thunks
47
// NOLINTBEGIN
48
MCNAPI ::std::optional<::BlockPos>
$place
(
::IFeature::PlacementContext
const
&
context
)
const
;
49
50
51
// NOLINTEND
52
53
public
:
54
// vftables
55
// NOLINTBEGIN
56
MCNAPI
static
void
**
$vftable
();
57
// NOLINTEND
58
};
BlockPos
Definition
BlockPos.h:14
IFeature
Definition
IFeature.h:18
WeightedRandomFeature
Definition
WeightedRandomFeature.h:14
WeightedRandomFeature::$place
MCAPI ::std::optional<::BlockPos > $place(::IFeature::PlacementContext const &context) const
WeightedRandomFeature::$vftable
static MCAPI void ** $vftable()
IFeature::PlacementContext
Definition
IFeature.h:26
WeightedRandomFeature::WeightedFeatureReference
Definition
WeightedRandomFeature.h:22
context
Definition
context.h:5
src
mc
world
level
levelgen
feature
WeightedRandomFeature.h
Generated on
for LeviLamina by
1.16.1