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: 46
24 virtual bool add(::ItemStack& item) /*override*/;
25
26 // vIndex: 47
27 virtual bool canAdd(::ItemStack const& item) const /*override*/;
28
29 // vIndex: 53
30 virtual int getFirstEmptySlot() const;
31
32 // vIndex: 26
33 virtual int getEmptySlotsCount() const /*override*/;
34
35 // vIndex: 54
36 virtual void setContainerSize(int size);
37
38 // vIndex: 12
39 virtual void setItem(int slot, ::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 void setupDefault();
51
52 MCAPI void tick(int selectedSlot);
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCAPI void $init();
59
60 MCAPI bool $add(::ItemStack& item);
61
62 MCAPI bool $canAdd(::ItemStack const& item) const;
63
64 MCAPI int $getFirstEmptySlot() const;
65
66 MCFOLD int $getEmptySlotsCount() const;
67
68 MCAPI void $setContainerSize(int size);
69
70 MCFOLD void $setItem(int slot, ::ItemStack const& item);
71
72 MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
Definition FillingContainer.h:17
Definition Inventory.h:13
static MCAPI void ** $vftable()
Definition ItemStack.h:23