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
17class FullPlayerInventoryWrapper {
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 explicit FullPlayerInventoryWrapper(::Player& player);
32
33 MCAPI int _clearSimpleContainerItem(::SimpleContainer& container, ::ContainerID containerId, int slot);
34
35 MCAPI int _removeCursorItem();
36
37 MCAPI int _removeCursorItem(::ItemStack const& item, bool requireExactAux, int maxCount);
38
39 MCAPI int _removeSimpleContainerItem(
40 ::SimpleContainer& container,
41 ::ContainerID containerId,
42 int slot,
43 ::ItemStack const& sourceItem,
44 bool requireExactAux,
45 int maxCount
46 );
47
48 MCAPI int clearAllItems();
49
50 MCAPI int getItemCount(::std::function<bool(::ItemStack const&)> comparator);
51
52 MCAPI int removeResource(
53 ::ItemStack const& sourceItem,
54 ::std::function<bool(::ItemStack const&)> comparator,
55 bool requireExactAux,
56 int maxCount
57 );
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::Player& player);
64 // NOLINTEND
65};
Definition InventoryTransactionManager.h:13
Definition ItemStack.h:35
Definition PlayerInventory.h:19
Definition Player.h:137
Definition SimpleContainer.h:16