LeviLamina
Loading...
Searching...
No Matches
PlayerInventory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerContentChangeListener.h"
7#include "mc/world/ContainerID.h"
8#include "mc/world/ContainerSizeChangeListener.h"
9#include "mc/world/item/ItemStack.h"
10
11// auto generated forward declare list
12// clang-format off
14class Inventory;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mSelected;
22 ::ll::TypedStorage<8, 152, ::ItemStack> mInfiniteItem;
23 ::ll::TypedStorage<1, 1, ::ContainerID> mSelectedContainerId;
24 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Inventory>> mInventory;
25 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mComplexItems;
26 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::HudContainerManagerModel>> mHudContainerManager;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~PlayerInventory() /*override*/ = default;
33
34 virtual void containerSizeChanged(int size) /*override*/;
35
36 virtual void containerContentChanged(int slot) /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI void clearVanishEnchantedItemsOnDeath();
43
44#ifdef LL_PLAT_C
45 MCAPI bool dropSlot(int slot, bool onlyClearContainer, bool dropAll, ::ContainerID containerId, bool randomly);
46#endif
47
48 MCAPI bool selectSlot(int slot, ::ContainerID containerId);
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54 MCFOLD void $containerSizeChanged(int size);
55
56 MCAPI void $containerContentChanged(int slot);
57
58
59 // NOLINTEND
60};
Definition ContainerContentChangeListener.h:5
Definition ContainerSizeChangeListener.h:5
Definition HudContainerManagerModel.h:18
Definition Inventory.h:13
Definition PlayerInventory.h:17