LeviLamina
Loading...
Searching...
No Matches
SpecificEnchantFunction.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
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::UntypedStorage<1, 1>
mUnk264825;
32
::ll::UntypedStorage<4, 8>
mUnkcdc248;
33
// NOLINTEND
34
35
public
:
36
// prevent constructor by default
37
EnchantInfo
& operator=(
EnchantInfo
const
&);
38
EnchantInfo
(
EnchantInfo
const
&);
39
EnchantInfo
();
40
};
41
42
public
:
43
// member variables
44
// NOLINTBEGIN
45
::ll::UntypedStorage<8, 24>
mUnk6c924a;
46
// NOLINTEND
47
48
public
:
49
// prevent constructor by default
50
SpecificEnchantFunction
& operator=(
SpecificEnchantFunction
const
&);
51
SpecificEnchantFunction
(
SpecificEnchantFunction
const
&);
52
SpecificEnchantFunction
();
53
54
public
:
55
// virtual functions
56
// NOLINTBEGIN
57
// vIndex: 0
58
virtual
~SpecificEnchantFunction
()
/*override*/
=
default
;
59
60
// vIndex: 4
61
virtual
void
apply(
::ItemStack
& item,
::Random
& random,
::LootTableContext
&
context
)
/*override*/
;
62
63
// vIndex: 2
64
virtual
void
apply(
::ItemInstance
& itemInstance,
::Random
& random,
::LootTableContext
&
context
)
/*override*/
;
65
// NOLINTEND
66
67
public
:
68
// member functions
69
// NOLINTBEGIN
70
MCAPI
SpecificEnchantFunction
(
71
::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
72
::std::vector<::SpecificEnchantFunction::EnchantInfo>
const
& enchantments
73
);
74
75
MCAPI
void
_applyInner(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
& allowNonVanilla,
bool
);
76
// NOLINTEND
77
78
public
:
79
// static functions
80
// NOLINTBEGIN
81
MCAPI static ::std::unique_ptr<::LootItemFunction>
82
deserialize(
::Json::Value
object
, ::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates);
83
// NOLINTEND
84
85
public
:
86
// constructor thunks
87
// NOLINTBEGIN
88
MCAPI
void
* $ctor(
89
::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
90
::std::vector<::SpecificEnchantFunction::EnchantInfo>
const
& enchantments
91
);
92
// NOLINTEND
93
94
public
:
95
// destructor thunk
96
// NOLINTBEGIN
97
98
// NOLINTEND
99
100
public
:
101
// virtual function thunks
102
// NOLINTBEGIN
103
MCAPI
void
$apply(
::ItemStack
& item,
::Random
& random,
::LootTableContext
&
context
);
104
105
MCAPI
void
$apply(
::ItemInstance
& itemInstance,
::Random
& random,
::LootTableContext
&
context
);
106
// NOLINTEND
107
108
public
:
109
// vftables
110
// NOLINTBEGIN
111
MCAPI
static
void
** $vftable();
112
// NOLINTEND
113
};
ItemInstance
Definition
ItemInstance.h:16
ItemStackBase
Definition
ItemStackBase.h:35
ItemStack
Definition
ItemStack.h:25
Json::Value
Definition
Value.h:16
LootItemCondition
Definition
LootItemCondition.h:12
LootItemFunction
Definition
LootItemFunction.h:17
LootTableContext
Definition
LootTableContext.h:20
Random
Definition
Random.h:16
SpecificEnchantFunction
Definition
SpecificEnchantFunction.h:19
SpecificEnchantFunction::EnchantInfo
Definition
SpecificEnchantFunction.h:27
context
Definition
context.h:5
ll::UntypedStorage
Definition
Alias.h:14
src
mc
world
level
storage
loot
functions
SpecificEnchantFunction.h
Generated on Sat Apr 26 2025 05:56:32 for LeviLamina by
1.12.0