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
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 // vIndex: 0
37 virtual ~RepairableItemComponent() /*override*/ = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
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
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static void bindType(
60 ::std::vector<::AllExperiments> const& requiredToggles,
61 ::std::optional<::SemVersion> releasedMinFormatVersion
62 );
63
64 MCAPI static ::HashedString const& getIdentifier();
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(::SharedTypes::v1_20_50::RepairableItemComponent component);
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition ExpressionNode.h:27
Definition HashedString.h:5
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition NetworkedItemComponent.h:7
Definition RepairableItemComponent.h:22
static MCAPI void ** $vftable()
Definition SemVersion.h:15
Definition RepairItemEntry.h:5
Definition RepairItemResult.h:5
Definition RepairableItemComponent.h:12
Definition ReflectionCtx.h:11
Definition ctx.h:5