Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
InventoryTransaction Class Reference

Public Member Functions

MCAPI void addAction (::InventoryAction const &action)
MCAPI void addItemToContent (::ItemStack const &item, int count)
MCAPI void forceBalanceTransaction ()
MCAPI ::std::vector<::InventoryAction > const & getActions (::InventorySource const &source) const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool checkTransactionItemsMatch (::ItemStack const &serverItem, ::ItemStack const &clientItem)
static MCAPI ::std::string const getInventoryTransactionErrorName (::InventoryTransactionError type)
static MCAPI ::BidirectionalUnorderedMap<::InventoryTransactionError, ::std::string > const & inventoryTransactionErrorMap ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::InventorySource, ::std::vector<::InventoryAction > > > mActions
::ll::TypedStorage< 8, 24, ::std::vector<::InventoryTransactionItemGroup > > mContents

Member Function Documentation

◆ addItemToContent()

MCAPI void InventoryTransaction::addItemToContent ( ::ItemStack const & item,
int count )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ forceBalanceTransaction()

MCAPI void InventoryTransaction::forceBalanceTransaction ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ checkTransactionItemsMatch()

MCAPI bool InventoryTransaction::checkTransactionItemsMatch ( ::ItemStack const & serverItem,
::ItemStack const & clientItem )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getInventoryTransactionErrorName()

MCAPI ::std::string const InventoryTransaction::getInventoryTransactionErrorName ( ::InventoryTransactionError type)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ inventoryTransactionErrorMap()

MCAPI ::BidirectionalUnorderedMap<::InventoryTransactionError, ::std::string > const & InventoryTransaction::inventoryTransactionErrorMap ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: