24 enum class Type : uint {
25 NormalTransaction = 0,
26 InventoryMismatch = 1,
27 ItemUseTransaction = 2,
28 ItemUseOnEntityTransaction = 3,
29 ItemReleaseTransaction = 4,
35 ::ll::TypedStorage<4, 4, ::ComplexInventoryTransaction::Type> mType;
36 ::ll::TypedStorage<8, 88, ::InventoryTransaction> mTransaction;
48 virtual void postLoadItems(
::BlockPalette& blockPalette,
bool isClientSide);
50 virtual ::InventoryTransactionError handle(
::Player& player,
bool isSenderAuthority)
const;
52 virtual void onTransactionError(
::Player& player, ::InventoryTransactionError error)
const;
62 MCAPI static ::std::unique_ptr<::ComplexInventoryTransaction> fromType(::ComplexInventoryTransaction::Type type);
64 MCAPI static ::std::unique_ptr<::ComplexInventoryTransaction>
67 MCAPI static ::std::string
const getTransactionTypeName(::ComplexInventoryTransaction::Type type);
73 MCAPI static ::BidirectionalUnorderedMap<::ComplexInventoryTransaction::Type, ::std::string>
const&
84 MCFOLD
void $postLoadItems(
::BlockPalette& blockPalette,
bool isClientSide);
86 MCAPI ::InventoryTransactionError $handle(
::Player& player,
bool isSenderAuthority)
const;
88 MCFOLD
void $onTransactionError(
::Player& player, ::InventoryTransactionError error)
const;
Definition EntityContext.h:17