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
EnchantRandomlyFunction.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
#include "mc/world/item/enchanting/EnchantmentInstance.h"
5
6
// auto generated inclusion list
7
#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
EnchantmentInstance
;
12
class
ItemStackBase
;
13
class
LootTableContext
;
14
class
Random
;
15
// clang-format on
16
17
class
EnchantRandomlyFunction
:
public
::LootItemFunction
{
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
::ll::TypedStorage<8, 24, ::std::vector<::EnchantmentInstance>> mEnchantments;
22
::ll::TypedStorage<1, 1, bool> mTreasure;
23
// NOLINTEND
24
25
public
:
26
// virtual functions
27
// NOLINTBEGIN
28
virtual
~EnchantRandomlyFunction
()
/*override*/
=
default
;
29
30
virtual ::LootItemFunction::FunctionType getFunctionType()
const
/*override*/
;
31
32
virtual
void
applyPreVersion(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&)
/*override*/
;
33
// NOLINTEND
34
35
public
:
36
// virtual function thunks
37
// NOLINTBEGIN
38
MCNAPI ::LootItemFunction::FunctionType
$getFunctionType
()
const
;
39
40
MCNAPI
void
$applyPreVersion
(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&);
41
42
43
// NOLINTEND
44
};
EnchantRandomlyFunction
Definition
EnchantRandomlyFunction.h:17
EnchantRandomlyFunction::$getFunctionType
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
EnchantRandomlyFunction::$applyPreVersion
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &random, ::LootTableContext &)
EnchantmentInstance
Definition
EnchantmentInstance.h:8
ItemStackBase
Definition
ItemStackBase.h:45
LootItemFunction
Definition
LootItemFunction.h:20
LootTableContext
Definition
LootTableContext.h:20
Random
Definition
Random.h:10
src
mc
world
level
storage
loot
functions
EnchantRandomlyFunction.h
Generated on
for LeviLamina by
1.16.1