LeviLamina
Loading...
Searching...
No Matches
InventoryTransaction.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/BidirectionalUnorderedMap.h"
7#include "mc/world/inventory/transaction/InventorySource.h"
8#include "mc/world/inventory/transaction/InventoryTransactionError.h"
9
10// auto generated forward declare list
11// clang-format off
12class InventoryAction;
14class ItemStack;
15class Player;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InventorySource, ::std::vector<::InventoryAction>>> mActions;
23 ::ll::TypedStorage<8, 24, ::std::vector<::InventoryTransactionItemGroup>> mContents;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI void addAction(::InventoryAction const& action);
30
31 MCAPI void addItemToContent(::ItemStack const& item, int count);
32
33#ifdef LL_PLAT_S
34 MCAPI ::InventoryTransactionError executeFull(::Player& p, bool isSenderAuthority) const;
35#endif
36
37 MCAPI void forceBalanceTransaction();
38
39#ifdef LL_PLAT_S
40 MCAPI void recalculateBalance();
41
42 MCAPI ::InventoryTransactionError verifyFull(::Player& p, bool isSenderAuthority) const;
43#endif
44
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static bool checkTransactionItemsMatch(::ItemStack const& serverItem, ::ItemStack const& clientItem);
52
53 MCAPI static ::std::string const getInventoryTransactionErrorName(::InventoryTransactionError type);
54 // NOLINTEND
55
56public:
57 // static variables
58 // NOLINTBEGIN
59 MCAPI static ::BidirectionalUnorderedMap<::InventoryTransactionError, ::std::string> const&
60 inventoryTransactionErrorMap();
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCAPI void $dtor();
67 // NOLINTEND
68};
Definition InventoryAction.h:15
Definition InventoryTransactionItemGroup.h:11
Definition InventoryTransaction.h:18
Definition ItemStack.h:26
Definition Player.h:129