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 // prevent constructor by default
18 ItemInstance& operator=(ItemInstance const&);
19
20public:
21 // virtual functions
22 // NOLINTBEGIN
23 virtual void reinit(::Block const& block, int count) /*override*/;
24
25 virtual void reinit(::Item const& item, int count, int auxValue) /*override*/;
26
27 virtual void reinit(::std::string_view const name, int count, int auxValue) /*override*/;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI ItemInstance();
34
35 MCAPI ItemInstance(::ItemInstance const& rhs);
36
37 MCAPI explicit ItemInstance(::ItemStackBase const& rhs);
38 // NOLINTEND
39
40public:
41 // static functions
42 // NOLINTBEGIN
43 MCAPI static ::ItemInstance fromTag(::CompoundTag const& tag);
44 // NOLINTEND
45
46public:
47 // static variables
48 // NOLINTBEGIN
49 MCAPI static ::ItemInstance const& EMPTY_ITEM();
50 // NOLINTEND
51
52public:
53 // constructor thunks
54 // NOLINTBEGIN
55 MCAPI void* $ctor();
56
57 MCFOLD void* $ctor(::ItemInstance const& rhs);
58
59 MCFOLD void* $ctor(::ItemStackBase const& rhs);
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI void $reinit(::Block const& block, int count);
66
67 MCAPI void $reinit(::Item const& item, int count, int auxValue);
68
69 MCAPI void $reinit(::std::string_view const name, int count, int auxValue);
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCAPI static void** $vftable();
78 // NOLINTEND
79};
Definition Block.h:42
Definition CompoundTag.h:18
Definition Item.h:71