24 enum class ActionType :
int {
31 enum class ClientCooldownState : uchar {
36 enum class PredictedResult : uchar {
41 enum class TriggerType : uchar {
50 ::ll::TypedStorage<4, 4, ::ItemUseInventoryTransaction::ActionType> mActionType;
51 ::ll::TypedStorage<1, 1, ::ItemUseInventoryTransaction::TriggerType> mTriggerType;
52 ::ll::TypedStorage<4, 12, ::BlockPos> mPos;
53 ::ll::TypedStorage<4, 4, uint> mTargetBlockId;
54 ::ll::TypedStorage<1, 1, uchar> mFace;
55 ::ll::TypedStorage<4, 4, int> mSlot;
56 ::ll::TypedStorage<1, 1, ::HandSlot> mHand;
57 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mItem;
58 ::ll::TypedStorage<4, 12, ::Vec3> mFromPos;
59 ::ll::TypedStorage<4, 12, ::Vec3> mClickPos;
60 ::ll::TypedStorage<1, 1, ::ItemUseInventoryTransaction::PredictedResult> mClientPredictedResult;
61 ::ll::TypedStorage<1, 1, ::ItemUseInventoryTransaction::ClientCooldownState> mClientCooldownState;
66 ItemUseInventoryTransaction();
71 virtual ~ItemUseInventoryTransaction() ;
73 virtual void postLoadItems(
::BlockPalette& blockPalette,
bool isClientSide) ;
75 virtual void onTransactionError(
::Player& player, ::InventoryTransactionError error)
const ;
77 virtual ::InventoryTransactionError handle(
::Player& player,
bool isSenderAuthority)
const ;
83 MCAPI ItemUseInventoryTransaction(::ItemUseInventoryTransaction
const& transaction);
85 MCNAPI ::ItemUseInventoryTransaction&
operator=(::ItemUseInventoryTransaction
const&);
87 MCAPI ::ItemUseInventoryTransaction& setSelectedItem(
::ItemStack const& item);
101 MCNAPI static ::BidirectionalUnorderedMap<::ItemUseInventoryTransaction::ActionType, ::std::string>
const&
108 MCAPI
void* $ctor(::ItemUseInventoryTransaction
const& transaction);
124 MCAPI ::InventoryTransactionError $handle(
::Player& player,
bool isSenderAuthority)
const;