LeviLamina
Loading...
Searching...
No Matches
SetPotionFunction.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/storage/loot/functions/LootItemFunction.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
ItemInstance
;
11
class
ItemStack
;
12
class
ItemStackBase
;
13
class
LootItemCondition
;
14
class
LootTableContext
;
15
class
Random
;
16
namespace
Json {
class
Value; }
17
// clang-format on
18
19
class
SetPotionFunction
:
public
::LootItemFunction
{
20
public
:
21
// member variables
22
// NOLINTBEGIN
23
::ll::UntypedStorage<8, 32>
mUnk8c4abd;
24
// NOLINTEND
25
26
public
:
27
// prevent constructor by default
28
SetPotionFunction
& operator=(
SetPotionFunction
const
&);
29
SetPotionFunction
(
SetPotionFunction
const
&);
30
SetPotionFunction
();
31
32
public
:
33
// virtual functions
34
// NOLINTBEGIN
35
// vIndex: 0
36
virtual
~SetPotionFunction
()
/*override*/
=
default
;
37
38
// vIndex: 4
39
virtual
void
apply(
::ItemStack
& item,
::Random
&,
::LootTableContext
&
context
)
/*override*/
;
40
41
// vIndex: 2
42
virtual
void
apply(
::ItemInstance
& item,
::Random
&,
::LootTableContext
&
context
)
/*override*/
;
43
44
// vIndex: 5
45
virtual ::LootItemFunction::FunctionType getFunctionType()
const
/*override*/
;
46
// NOLINTEND
47
48
public
:
49
// member functions
50
// NOLINTBEGIN
51
MCNAPI
void
_apply
(
::ItemStackBase
& item,
::LootTableContext
const
&
context
)
const
;
52
// NOLINTEND
53
54
public
:
55
// static functions
56
// NOLINTBEGIN
57
MCNAPI static ::std::unique_ptr<::LootItemFunction>
58
deserialize
(
::Json::Value
object
, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
59
// NOLINTEND
60
61
public
:
62
// virtual function thunks
63
// NOLINTBEGIN
64
MCNAPI
void
$apply
(
::ItemStack
& item,
::Random
&,
::LootTableContext
&
context
);
65
66
MCNAPI
void
$apply
(
::ItemInstance
& item,
::Random
&,
::LootTableContext
&
context
);
67
68
MCNAPI ::LootItemFunction::FunctionType
$getFunctionType
()
const
;
69
// NOLINTEND
70
71
public
:
72
// vftables
73
// NOLINTBEGIN
74
MCNAPI
static
void
**
$vftable
();
75
// NOLINTEND
76
};
ItemInstance
Definition
ItemInstance.h:15
ItemStackBase
Definition
ItemStackBase.h:36
ItemStack
Definition
ItemStack.h:23
Json::Value
Definition
Value.h:16
LootItemCondition
Definition
LootItemCondition.h:12
LootItemFunction
Definition
LootItemFunction.h:17
LootTableContext
Definition
LootTableContext.h:19
Random
Definition
Random.h:10
SetPotionFunction
Definition
SetPotionFunction.h:19
SetPotionFunction::$getFunctionType
MCAPI::LootItemFunction::FunctionType $getFunctionType() const
SetPotionFunction::$vftable
static MCAPI void ** $vftable()
SetPotionFunction::$apply
MCAPI void $apply(::ItemStack &item, ::Random &, ::LootTableContext &context)
SetPotionFunction::deserialize
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
SetPotionFunction::_apply
MCAPI void _apply(::ItemStackBase &item, ::LootTableContext const &context) const
SetPotionFunction::$apply
MCAPI void $apply(::ItemInstance &item, ::Random &, ::LootTableContext &context)
context
Definition
context.h:5
ll::UntypedStorage
Definition
Alias.h:14
src-server
mc
world
level
storage
loot
functions
SetPotionFunction.h
Generated on Tue Nov 25 2025 04:01:56 for LeviLamina by
1.12.0