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
LootingEnchantFunction.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/storage/loot/RandomValueBounds.h"
7
#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
ItemStackBase
;
12
class
LootItemCondition
;
13
class
LootTableContext
;
14
class
Random
;
15
namespace
Json {
class
Value
; }
16
// clang-format on
17
18
class
LootingEnchantFunction
:
public
::LootItemFunction
{
19
public
:
20
// member variables
21
// NOLINTBEGIN
22
::ll::TypedStorage<4, 8, ::RandomValueBounds> mValue;
23
// NOLINTEND
24
25
public
:
26
// virtual functions
27
// NOLINTBEGIN
28
virtual ::LootItemFunction::FunctionType getFunctionType()
const
/*override*/
;
29
30
virtual
void
applyPreVersion(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&
context
)
/*override*/
;
31
32
virtual
void
apply26U6(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&
context
)
/*override*/
;
33
// NOLINTEND
34
35
public
:
36
// static functions
37
// NOLINTBEGIN
38
MCNAPI
static
int
_getLootingEnchantLevel
(
::LootTableContext
&
context
);
39
40
#ifdef LL_PLAT_C
41
MCNAPI static ::std::unique_ptr<::LootItemFunction>
42
deserialize
(
::Json::Value
object
, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
43
#endif
44
// NOLINTEND
45
46
public
:
47
// virtual function thunks
48
// NOLINTBEGIN
49
MCNAPI ::LootItemFunction::FunctionType
$getFunctionType
()
const
;
50
51
MCNAPI
void
$applyPreVersion
(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&
context
);
52
53
MCNAPI
void
$apply26U6
(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&
context
);
54
55
56
// NOLINTEND
57
58
public
:
59
// vftables
60
// NOLINTBEGIN
61
MCNAPI
static
void
**
$vftable
();
62
// NOLINTEND
63
};
ItemStackBase
Definition
ItemStackBase.h:45
Json::Value
Definition
Value.h:16
LootItemCondition
Definition
LootItemCondition.h:12
LootItemFunction
Definition
LootItemFunction.h:20
LootItemFunction::deserialize
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, bool usingUpcomingCreatorFeaturesExperiment)
LootTableContext
Definition
LootTableContext.h:20
LootingEnchantFunction
Definition
LootingEnchantFunction.h:18
LootingEnchantFunction::$applyPreVersion
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &random, ::LootTableContext &context)
LootingEnchantFunction::$getFunctionType
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
LootingEnchantFunction::$vftable
static MCAPI void ** $vftable()
LootingEnchantFunction::_getLootingEnchantLevel
static MCAPI int _getLootingEnchantLevel(::LootTableContext &context)
LootingEnchantFunction::$apply26U6
MCAPI void $apply26U6(::ItemStackBase &item, ::Random &random, ::LootTableContext &context)
Random
Definition
Random.h:10
context
Definition
context.h:5
src
mc
world
level
storage
loot
functions
LootingEnchantFunction.h
Generated on
for LeviLamina by
1.16.1