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 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 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI void $init();
61
62 MCAPI bool $add(::ItemStack& item);
63
64 MCAPI bool $canAdd(::ItemStack const& item) const;
65
66 MCAPI int $getFirstEmptySlot() const;
67
68 MCFOLD int $getEmptySlotsCount() const;
69
70 MCAPI void $setContainerSize(int size);
71
72 MCFOLD void $setItem(int modelSlot, ::ItemStack const& item);
73
74 MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const& item, bool forceBalanced);
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition FillingContainer.h:16
Definition Inventory.h:13
static MCAPI void ** $vftable()
Definition ItemStack.h:25