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
SetItemDamageFunction.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
SetItemDamageFunction
:
public
::LootItemFunction
{
19
public
:
20
// member variables
21
// NOLINTBEGIN
22
::ll::TypedStorage<4, 8, ::RandomValueBounds> mDamage;
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
&)
/*override*/
;
31
// NOLINTEND
32
33
public
:
34
// static functions
35
// NOLINTBEGIN
36
MCNAPI static ::std::unique_ptr<::LootItemFunction>
37
deserialize
(
::Json::Value
object
, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
38
// NOLINTEND
39
40
public
:
41
// virtual function thunks
42
// NOLINTBEGIN
43
MCNAPI ::LootItemFunction::FunctionType
$getFunctionType
()
const
;
44
45
MCNAPI
void
$applyPreVersion
(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&);
46
47
48
// NOLINTEND
49
50
public
:
51
// vftables
52
// NOLINTBEGIN
53
MCNAPI
static
void
**
$vftable
();
54
// NOLINTEND
55
};
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
SetItemDamageFunction
Definition
SetItemDamageFunction.h:18
SetItemDamageFunction::$vftable
static MCAPI void ** $vftable()
SetItemDamageFunction::deserialize
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
SetItemDamageFunction::$applyPreVersion
MCAPI void $applyPreVersion(::ItemStackBase &item, ::Random &random, ::LootTableContext &)
SetItemDamageFunction::$getFunctionType
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
src
mc
world
level
storage
loot
functions
SetItemDamageFunction.h
Generated on
for LeviLamina by
1.16.1