LeviLamina
Loading...
Searching...
No Matches
Inventory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/inventory/FillingContainer.h"
7
8// auto generated forward declare list
9// clang-format off
10class ItemStack;
11// clang-format on
12
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 // vIndex: 0
18 virtual ~Inventory() /*override*/ = default;
19
20 // vIndex: 1
21 virtual void init() /*override*/;
22
23 // vIndex: 43
24 virtual bool add(::ItemStack& item) /*override*/;
25
26 // vIndex: 44
27 virtual bool canAdd(::ItemStack const& item) const /*override*/;
28
29 // vIndex: 50
30 virtual int getFirstEmptySlot() const;
31
32 // vIndex: 26
33 virtual int getEmptySlotsCount() const /*override*/;
34
35 // vIndex: 51
36 virtual void setContainerSize(int size);
37
38 // vIndex: 12
39 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
40
41 // vIndex: 13
42 virtual void setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced) /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI void dropSlot(int slot, bool onlyClearContainer, bool dropAll, bool randomly);
49
50 MCAPI ::std::vector<::ItemStack> getComplexItems();
51
52 MCAPI void setupDefault();
53
54 MCAPI void tick(int selectedSlot);
55 // NOLINTEND
56
57public:
58 // destructor thunk
59 // NOLINTBEGIN
60
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI void $init();
67
68 MCAPI bool $add(::ItemStack& item);
69
70 MCAPI bool $canAdd(::ItemStack const& item) const;
71
72 MCAPI int $getFirstEmptySlot() const;
73
74 MCFOLD int $getEmptySlotsCount() const;
75
76 MCAPI void $setContainerSize(int size);
77
78 MCFOLD void $setItem(int modelSlot, ::ItemStack const& item);
79
80 MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition FillingContainer.h:16
Definition Inventory.h:13
Definition ItemStack.h:25