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
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 0
38 virtual ~RepairableItemComponent() /*override*/ = default;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
45
46 MCAPI int
47 _repairItem(::ItemStackBase& materialItem, ::ItemStackBase& resultItem, ::ExpressionNode repairAmountExpression)
48 const;
49
50 MCAPI ::RepairItemResult
51 handleItemRepair(::ItemStack& inputItem, ::ItemStack& materialItem, bool allowBidirectionalRepair) const;
52
53 MCAPI ::RepairableItemComponent& operator=(::RepairableItemComponent&&);
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static void bindType(
61 ::std::vector<::AllExperiments> const& releasedMinFormatVersion,
62 ::std::optional<::SemVersion> requiredToggles
63 );
64
65 MCAPI static ::HashedString const& getIdentifier();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::SharedTypes::v1_20_50::RepairableItemComponent component);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85};
Definition ExpressionNode.h:31
Definition HashedString.h:5
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:6
Definition RepairableItemComponent.h:22
Definition SemVersion.h:15
Definition RepairItemEntry.h:5
Definition RepairItemResult.h:5
Definition RepairableItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5