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 {
16public:
17 // virtual functions
18 // NOLINTBEGIN
19 virtual void reinit(::Block const& block, int count) /*override*/;
20
21 virtual void reinit(::Item const& item, int count, int auxValue) /*override*/;
22
23 virtual void reinit(::std::string_view const name, int count, int auxValue) /*override*/;
24
25 virtual ~ItemInstance() /*override*/;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ItemInstance();
32
33 MCAPI ItemInstance(::ItemInstance const& rhs);
34
35 MCAPI explicit ItemInstance(::ItemStackBase const& rhs);
36
37 MCAPI ItemInstance(::Block const& block, int count = 1, ::CompoundTag const* _userData = nullptr);
38
39 MCAPI ItemInstance(::Item const& item, int count = 1, int auxValue = 0, ::CompoundTag const* _userData = nullptr);
40
41 MCAPI ItemInstance(::std::string_view name, int count = 1, int auxValue = 0, ::CompoundTag const* _userData = nullptr);
42
43 MCAPI ::ItemInstance clone() const;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCAPI static ::ItemInstance fromTag(::CompoundTag const& tag);
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCAPI static ::ItemInstance const& EMPTY_ITEM();
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor();
62
63 MCAPI void* $ctor(::ItemInstance const& rhs);
64
65 MCFOLD void* $ctor(::ItemStackBase const& rhs);
66
67 MCAPI void* $ctor(::Block const& block, int count, ::CompoundTag const* _userData);
68
69 MCAPI void* $ctor(::Item const& item, int count, int auxValue, ::CompoundTag const* _userData);
70
71 MCAPI void* $ctor(::std::string_view name, int count, int auxValue, ::CompoundTag const* _userData);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCFOLD void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI void $reinit(::Block const& block, int count);
84
85 MCAPI void $reinit(::Item const& item, int count, int auxValue);
86
87 MCAPI void $reinit(::std::string_view const name, int count, int auxValue);
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition Block.h:43
Definition CompoundTag.h:23
static MCAPI void ** $vftable()
Definition Item.h:69