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
11class ExpressionNode;
12class HashedString;
13class ItemStack;
14class ItemStackBase;
15class SemVersion;
16struct RepairItemEntry;
17struct RepairItemResult;
18namespace SharedTypes::v1_20_50 { struct RepairableItemComponent; }
19namespace cereal { struct ReflectionCtx; }
20// clang-format on
21
22class RepairableItemComponent : public ::NetworkedItemComponent<::RepairableItemComponent> {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 24, ::std::vector<::RepairItemEntry>> mRepairItems;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 RepairableItemComponent();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~RepairableItemComponent() /*override*/ = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI explicit RepairableItemComponent(::SharedTypes::v1_20_50::RepairableItemComponent component);
43
44 MCAPI int _repairItem(
45 ::ItemStackBase& materialItem,
46 ::ItemStackBase& resultItem,
47 ::ExpressionNode repairAmountExpression
48 ) const;
49
50 MCAPI ::RepairItemResult
51 handleItemRepair(::ItemStack& inputItem, ::ItemStack& materialItem, bool allowBidirectionalRepair) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static void bindType(
59 ::std::vector<::AllExperiments> const& requiredToggles,
60 ::std::optional<::SemVersion> releasedMinFormatVersion
61 );
62
63 MCAPI static ::HashedString const& getIdentifier();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(::SharedTypes::v1_20_50::RepairableItemComponent component);
70 // NOLINTEND
71
72public:
73 // vftables
74 // NOLINTBEGIN
75 MCNAPI static void** $vftable();
76 // NOLINTEND
77};
Definition ExpressionNode.h:33
Definition HashedString.h:5
Definition ItemStackBase.h:44
Definition ItemStack.h:26
Definition NetworkedItemComponent.h:7
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition RepairItemEntry.h:13
Definition RepairItemResult.h:8
Definition RepairableItemComponent.h:16
Definition ReflectionCtx.h:11
Definition ctx.h:5