Skip to content
LeviMC
English
AutoLightDark
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;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<::InventorySource, ::std::vector<::InventoryAction>>> mActions;
22 ::ll::TypedStorage<8, 24, ::std::vector<::InventoryTransactionItemGroup>> mContents;
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI void addAction(::InventoryAction const& action);
29
30 MCNAPI void addItemToContent(::ItemStack const& item, int count);
31
33
34 MCAPI ::std::vector<::InventoryAction> const& getActions(::InventorySource const& source) const;
35
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCNAPI static bool checkTransactionItemsMatch(::ItemStack const& serverItem, ::ItemStack const& clientItem);
43
44 MCNAPI static ::std::string const getInventoryTransactionErrorName(::InventoryTransactionError type);
45 // NOLINTEND
46
47public:
48 // static variables
49 // NOLINTBEGIN
50 MCNAPI static ::BidirectionalUnorderedMap<::InventoryTransactionError, ::std::string> const&
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCAPI void $dtor();
58 // NOLINTEND
59};
Definition InventoryAction.h:15
Definition InventorySource.h:9
Definition InventoryTransactionItemGroup.h:11
Definition InventoryTransaction.h:17
MCAPI void forceBalanceTransaction()
static MCAPI ::BidirectionalUnorderedMap<::InventoryTransactionError, ::std::string > const & inventoryTransactionErrorMap()
static MCAPI bool checkTransactionItemsMatch(::ItemStack const &serverItem, ::ItemStack const &clientItem)
MCAPI void addItemToContent(::ItemStack const &item, int count)
static MCAPI ::std::string const getInventoryTransactionErrorName(::InventoryTransactionError type)
Definition ItemStack.h:26