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
10// auto generated forward declare list
11// clang-format off
12class Container;
14class Inventory;
15class ItemStack;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 4, int> mSelected;
23 ::ll::TypedStorage<8, 152, ::ItemStack> mInfiniteItem;
24 ::ll::TypedStorage<1, 1, ::ContainerID> mSelectedContainerId;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Inventory>> mInventory;
26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mComplexItems;
27 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::HudContainerManagerModel>> mHudContainerManager;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 1
34 virtual ~PlayerInventory() /*override*/;
35
36 // vIndex: 0
37 virtual void containerSizeChanged(int size) /*override*/;
38
39 // vIndex: 0
40 virtual void containerContentChanged(int slot) /*override*/;
41
42 // vIndex: 2
43 virtual void createTransactionContext(
44 ::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)> callback,
45 ::std::function<void()> execute
46 );
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI explicit PlayerInventory(::std::unique_ptr<::Inventory> inv);
53
54 MCAPI int getItemCount(::std::function<bool(::ItemStack const&)> comparator);
55
56 MCAPI bool removeResource(int type);
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::std::unique_ptr<::Inventory> inv);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCAPI void $dtor();
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCFOLD void $containerSizeChanged(int size);
75
76 MCAPI void $containerContentChanged(int slot);
77
78 MCAPI void $createTransactionContext(
79 ::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)> callback,
80 ::std::function<void()> execute
81 );
82 // NOLINTEND
83
84public:
85 // vftables
86 // NOLINTBEGIN
87 MCAPI static void** $vftableForContainerSizeChangeListener();
88
89 MCAPI static void** $vftableForContainerContentChangeListener();
90 // NOLINTEND
91};
Definition ContainerContentChangeListener.h:5
Definition ContainerSizeChangeListener.h:5
Definition Container.h:30
Definition HudContainerManagerModel.h:18
Definition Inventory.h:13
Definition ItemStack.h:25
Definition PlayerInventory.h:18