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