LeviLamina
Loading...
Searching...
No Matches
InventoryTransaction Class Reference

Public Member Functions

MCFOLD void _logTransaction (bool isClientSide) const
MCAPI void addAction (::InventoryAction const &action)
MCAPI void addItemToContent (::ItemStack const &item, int count)
MCAPI::InventoryTransactionError executeFull (::Player &p, bool isSenderAuthority) const
MCAPI void forceBalanceTransaction ()
MCAPI ::std::vector<::InventoryAction > const & getActions (::InventorySource const &source) const
MCAPI void markValidActionsForSerialization (bool isClientSide) const
MCAPI void postLoadItems (::BlockPalette &blockPalette, bool isClientSide)
MCAPI void recalculateBalance ()
MCAPI::InventoryTransactionError verifyFull (::Player &p, bool isSenderAuthority) const
MCAPI void write (::BinaryStream &stream) const
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI bool checkTransactionItemsMatch (::ItemStack const &serverItem, ::ItemStack const &clientItem)
static MCAPI ::Bedrock::Result<::InventoryTransactiondeserialize (::ReadOnlyBinaryStream &stream)
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

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