LeviLamina
Loading...
Searching...
No Matches
RepairableItemComponent.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/item/components/NetworkedItemComponent.h"
7
#include "mc/world/level/storage/AllExperiments.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
ExpressionNode
;
12
class
HashedString
;
13
class
ItemStack
;
14
class
ItemStackBase
;
15
class
SemVersion
;
16
struct
RepairItemEntry
;
17
struct
RepairItemResult
;
18
namespace
SharedTypes::v1_20_50 {
struct
RepairableItemComponent
; }
19
namespace
cereal {
struct
ReflectionCtx; }
20
// clang-format on
21
22
class
RepairableItemComponent
:
public
::NetworkedItemComponent
<::RepairableItemComponent> {
23
public
:
24
// member variables
25
// NOLINTBEGIN
26
::ll::TypedStorage<8, 24, ::std::vector<::RepairItemEntry>> mRepairItems;
27
// NOLINTEND
28
29
public
:
30
// prevent constructor by default
31
RepairableItemComponent
();
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
// vIndex: 0
37
virtual
~RepairableItemComponent
()
/*override*/
=
default
;
38
// NOLINTEND
39
40
public
:
41
// member functions
42
// NOLINTBEGIN
43
MCAPI
explicit
RepairableItemComponent
(
::SharedTypes::v1_20_50::RepairableItemComponent
component);
44
45
MCAPI
int
_repairItem(
46
::ItemStackBase
& materialItem,
47
::ItemStackBase
& resultItem,
48
::ExpressionNode
repairAmountExpression
49
)
const
;
50
51
MCAPI ::RepairItemResult
52
handleItemRepair(
::ItemStack
& inputItem,
::ItemStack
& materialItem,
bool
allowBidirectionalRepair)
const
;
53
// NOLINTEND
54
55
public
:
56
// static functions
57
// NOLINTBEGIN
58
MCAPI
static
void
bindType(
59
::cereal::ReflectionCtx
&
ctx
,
60
::std::vector<::AllExperiments>
const
& requiredToggles,
61
::std::optional<::SemVersion> releasedMinFormatVersion
62
);
63
64
MCAPI static ::HashedString
const
& getIdentifier();
65
// NOLINTEND
66
67
public
:
68
// constructor thunks
69
// NOLINTBEGIN
70
MCAPI
void
* $ctor(
::SharedTypes::v1_20_50::RepairableItemComponent
component);
71
// NOLINTEND
72
73
public
:
74
// vftables
75
// NOLINTBEGIN
76
MCNAPI
static
void
**
$vftable
();
77
// NOLINTEND
78
};
ExpressionNode
Definition
ExpressionNode.h:27
HashedString
Definition
HashedString.h:5
ItemStackBase
Definition
ItemStackBase.h:35
ItemStack
Definition
ItemStack.h:25
NetworkedItemComponent
Definition
NetworkedItemComponent.h:7
RepairableItemComponent
Definition
RepairableItemComponent.h:22
RepairableItemComponent::$vftable
static MCAPI void ** $vftable()
SemVersion
Definition
SemVersion.h:15
RepairItemEntry
Definition
RepairItemEntry.h:5
RepairItemResult
Definition
RepairItemResult.h:5
SharedTypes::v1_20_50::RepairableItemComponent
Definition
RepairableItemComponent.h:12
cereal::ReflectionCtx
Definition
ReflectionCtx.h:11
ctx
Definition
ctx.h:5
src
mc
world
item
components
RepairableItemComponent.h
Generated on Fri Jun 13 2025 13:06:16 for LeviLamina by
1.12.0