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
MCNAPI
SpecificEnchantFunction
(
71
::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
72
::std::vector<::SpecificEnchantFunction::EnchantInfo>
const
& enchantments
73
);
74
75
MCNAPI
void
_applyInner
(
::ItemStackBase
& item,
::Random
& random,
::LootTableContext
&,
bool
allowNonVanilla);
76
// NOLINTEND
77
78
public
:
79
// static functions
80
// NOLINTBEGIN
81
MCNAPI 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
MCNAPI
void
*
$ctor
(
89
::std::vector<::std::unique_ptr<::LootItemCondition>>& predicates,
90
::std::vector<::SpecificEnchantFunction::EnchantInfo>
const
& enchantments
91
);
92
// NOLINTEND
93
94
public
:
95
// virtual function thunks
96
// NOLINTBEGIN
97
MCNAPI
void
$apply
(
::ItemStack
& item,
::Random
& random,
::LootTableContext
&
context
);
98
99
MCNAPI
void
$apply
(
::ItemInstance
& itemInstance,
::Random
& random,
::LootTableContext
&
context
);
100
// NOLINTEND
101
102
public
:
103
// vftables
104
// NOLINTBEGIN
105
MCNAPI
static
void
**
$vftable
();
106
// NOLINTEND
107
};
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:11
SpecificEnchantFunction
Definition
SpecificEnchantFunction.h:19
SpecificEnchantFunction::_applyInner
MCAPI void _applyInner(::ItemStackBase &item, ::Random &random, ::LootTableContext &, bool allowNonVanilla)
SpecificEnchantFunction::$apply
MCAPI void $apply(::ItemInstance &itemInstance, ::Random &random, ::LootTableContext &context)
SpecificEnchantFunction::deserialize
static MCAPI ::std::unique_ptr<::LootItemFunction > deserialize(::Json::Value object, ::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates)
SpecificEnchantFunction::$ctor
MCAPI void * $ctor(::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates, ::std::vector<::SpecificEnchantFunction::EnchantInfo > const &enchantments)
SpecificEnchantFunction::$vftable
static MCAPI void ** $vftable()
SpecificEnchantFunction::SpecificEnchantFunction
MCAPI SpecificEnchantFunction(::std::vector<::std::unique_ptr<::LootItemCondition > > &predicates, ::std::vector<::SpecificEnchantFunction::EnchantInfo > const &enchantments)
SpecificEnchantFunction::$apply
MCAPI void $apply(::ItemStack &item, ::Random &random, ::LootTableContext &context)
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 Jul 5 2025 06:59:09 for LeviLamina by
1.12.0