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