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 _removeCursorItem();
34
35 MCAPI int _removeSimpleContainerItem(
36 ::SimpleContainer& container,
37 ::ContainerID containerId,
38 int slot,
39 ::ItemStack const& sourceItem,
40 bool requireExactAux,
41 int maxCount
42 );
43
44 MCAPI int clearAllItems();
45
46 MCAPI int getItemCount(::std::function<bool(::ItemStack const&)> comparator);
47
48 MCAPI int removeResource(
49 ::ItemStack const& sourceItem,
50 ::std::function<bool(::ItemStack const&)> comparator,
51 bool requireExactAux,
52 int maxCount
53 );
54 // NOLINTEND
55};
Definition FullPlayerInventoryWrapper.h:17
Definition InventoryTransactionManager.h:13
Definition ItemStack.h:26
Definition PlayerInventory.h:17
Definition Player.h:129
Definition SimpleContainer.h:14