23 enum class Type : uint {
24 NormalTransaction = 0,
25 InventoryMismatch = 1,
26 ItemUseTransaction = 2,
27 ItemUseOnEntityTransaction = 3,
28 ItemReleaseTransaction = 4,
34 ::ll::TypedStorage<4, 4, ::ComplexInventoryTransaction::Type> mType;
35 ::ll::TypedStorage<8, 88, ::InventoryTransaction> mTransaction;
47 virtual void postLoadItems(
::BlockPalette& blockPalette,
bool isClientSide);
49 virtual ::InventoryTransactionError handle(
::Player& player,
bool isSenderAuthority)
const;
51 virtual void onTransactionError(
::Player& player, ::InventoryTransactionError error)
const;
65 MCAPI static ::std::unique_ptr<::ComplexInventoryTransaction>
68 MCAPI static ::std::string
const getTransactionTypeName(::ComplexInventoryTransaction::Type type);
74 MCAPI static ::BidirectionalUnorderedMap<::ComplexInventoryTransaction::Type, ::std::string>
const&
85 MCFOLD
void $postLoadItems(
::BlockPalette& blockPalette,
bool isClientSide);
87 MCAPI ::InventoryTransactionError $handle(
::Player& player,
bool isSenderAuthority)
const;
89 MCFOLD
void $onTransactionError(
::Player& player, ::InventoryTransactionError error)
const;
Definition EntityContext.h:15