LeviLamina
Loading...
Searching...
No Matches
ItemInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ItemStackBase.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class CompoundTag;
12class Item;
13// clang-format on
14
15class ItemInstance : public ::ItemStackBase {
16#ifdef LL_PLAT_S
17public:
18 // prevent constructor by default
19 ItemInstance& operator=(ItemInstance const&);
20 ItemInstance();
21
22#else // LL_PLAT_C
23public:
24 // prevent constructor by default
25 ItemInstance& operator=(ItemInstance const&);
26
27#endif
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual void reinit(::Block const& block, int count) /*override*/;
32
33 virtual void reinit(::Item const& item, int count, int auxValue) /*override*/;
34
35 virtual void reinit(::std::string_view const name, int count, int auxValue) /*override*/;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41#ifdef LL_PLAT_C
42 MCAPI ItemInstance();
43#endif
44
45 MCAPI ItemInstance(::ItemInstance const& rhs);
46
47 MCAPI explicit ItemInstance(::ItemStackBase const& rhs);
48 // NOLINTEND
49
50public:
51 // static functions
52 // NOLINTBEGIN
53 MCAPI static ::ItemInstance fromTag(::CompoundTag const& tag);
54 // NOLINTEND
55
56public:
57 // static variables
58 // NOLINTBEGIN
59 MCAPI static ::ItemInstance const& EMPTY_ITEM();
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65#ifdef LL_PLAT_C
66 MCAPI void* $ctor();
67#endif
68
69 MCFOLD void* $ctor(::ItemInstance const& rhs);
70
71 MCFOLD void* $ctor(::ItemStackBase const& rhs);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI void $reinit(::Block const& block, int count);
78
79 MCAPI void $reinit(::Item const& item, int count, int auxValue);
80
81 MCAPI void $reinit(::std::string_view const name, int count, int auxValue);
82
83
84 // NOLINTEND
85
86public:
87 // vftables
88 // NOLINTBEGIN
89 MCAPI static void** $vftable();
90 // NOLINTEND
91};
Definition Block.h:41
Definition CompoundTag.h:18
Definition Item.h:71