LeviLamina
Loading...
Searching...
No Matches
FullPlayerInventoryWrapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7
8// auto generated forward declare list
9// clang-format off
11class ItemStack;
12class Player;
13class PlayerInventory;
14class SimpleContainer;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::PlayerInventory&> mPlayerInventory;
22 ::ll::TypedStorage<8, 8, ::SimpleContainer&> mArmorInventory;
23 ::ll::TypedStorage<8, 8, ::SimpleContainer&> mHandInventory;
24 ::ll::TypedStorage<8, 8, ::InventoryTransactionManager*> mTransactionManager;
25 ::ll::TypedStorage<8, 8, ::Player*> mPlayer;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI int _clearSimpleContainerItem(::SimpleContainer& container, ::ContainerID containerId, int slot);
32
33 MCAPI int _getSimpleContainerItemCount(
34 ::SimpleContainer& container,
35 int slot,
36 ::std::function<bool(::ItemStack const&)> comparator
37 );
38
39 MCAPI int _removeCursorItem();
40
41 MCAPI int _removeCursorItem(::ItemStack const& item, bool requireExactAux, int maxCount);
42
43 MCAPI int _removeSimpleContainerItem(
44 ::SimpleContainer& container,
45 ::ContainerID containerId,
46 int slot,
47 ::ItemStack const& sourceItem,
48 bool requireExactAux,
49 int maxCount
50 );
51
52 MCAPI void _sendCursorSlotPacket() const;
53
54 MCAPI int clearAllItems();
55
56 MCAPI int getItemCount(::std::function<bool(::ItemStack const&)> comparator);
57
58 MCAPI int removeResource(
59 ::ItemStack const& sourceItem,
60 ::std::function<bool(::ItemStack const&)> comparator,
61 bool requireExactAux,
62 int maxCount
63 );
64 // NOLINTEND
65};
Definition FullPlayerInventoryWrapper.h:17
Definition InventoryTransactionManager.h:13
Definition ItemStack.h:25
Definition PlayerInventory.h:18
Definition Player.h:119
Definition SimpleContainer.h:14