Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemUseInventoryTransaction Class Reference
Inheritance diagram for ItemUseInventoryTransaction:

Public Types

enum class  ActionType : int { Place = 0 , Use = 1 , Destroy = 2 , UseAsAttack = 3 }
enum class  ClientCooldownState : uchar { Off = 0 , On = 1 }
enum class  PredictedResult : uchar { Failure = 0 , Success = 1 }
enum class  TriggerType : uchar { Unknown = 0 , PlayerInput = 1 , SimulationTick = 2 }
enum class  Type : uint {
  NormalTransaction = 0 , InventoryMismatch = 1 , ItemUseTransaction = 2 , ItemUseOnEntityTransaction = 3 ,
  ItemReleaseTransaction = 4
}

Public Member Functions

virtual void postLoadItems (::BlockPalette &blockPalette, bool isClientSide)
virtual void onTransactionError (::Player &player, ::InventoryTransactionError error) const
virtual::InventoryTransactionError handle (::Player &player, bool isSenderAuthority) const
MCAPI ItemUseInventoryTransaction (::ItemUseInventoryTransaction const &transaction)
MCAPI::ItemUseInventoryTransaction & operator= (::ItemUseInventoryTransaction const &)
MCAPI::ItemUseInventoryTransaction & setSelectedItem (::ItemStack const &item)
MCAPI void * $ctor (::ItemUseInventoryTransaction const &transaction)
MCAPI void $dtor ()
MCAPI void $postLoadItems (::BlockPalette &blockPalette, bool isClientSide)
MCAPI void $onTransactionError (::Player &player, ::InventoryTransactionError error) const
MCAPI::InventoryTransactionError $handle (::Player &player, bool isSenderAuthority) const

Static Public Member Functions

static MCAPI void resendBlocksAroundArea (::Player &player, ::BlockPos const &pos, uchar facing)
static MCAPI void resendPlayerState (::Player &player)
static MCAPI ::BidirectionalUnorderedMap<::ItemUseInventoryTransaction::ActionType, ::std::string > const & actionTypeMap ()
static MCAPI void ** $vftable ()
static MCAPI void _setDepenetrationOverride (::EntityContext &entity)
static MCAPI ::std::unique_ptr<::ComplexInventoryTransaction > fromType (::ComplexInventoryTransaction::Type type, ::InventoryTransaction const &transaction)
static MCAPI ::std::string const getTransactionTypeName (::ComplexInventoryTransaction::Type type)
static MCAPI ::BidirectionalUnorderedMap<::ComplexInventoryTransaction::Type, ::std::string > const & transactionTypeMap ()

Public Attributes

::ll::TypedStorage< 4, 4, ::ItemUseInventoryTransaction::ActionType > mActionType
::ll::TypedStorage< 1, 1, ::ItemUseInventoryTransaction::TriggerType > mTriggerType
::ll::TypedStorage< 4, 12, ::BlockPos > mPos
::ll::TypedStorage< 4, 4, uint > mTargetBlockId
::ll::TypedStorage< 1, 1, uchar > mFace
::ll::TypedStorage< 4, 4, int > mSlot
::ll::TypedStorage< 1, 1, ::HandSlot > mHand
::ll::TypedStorage< 8, 96, ::NetworkItemStackDescriptor > mItem
::ll::TypedStorage< 4, 12, ::Vec3 > mFromPos
::ll::TypedStorage< 4, 12, ::Vec3 > mClickPos
::ll::TypedStorage< 1, 1, ::ItemUseInventoryTransaction::PredictedResult > mClientPredictedResult
::ll::TypedStorage< 1, 1, ::ItemUseInventoryTransaction::ClientCooldownState > mClientCooldownState
::ll::TypedStorage< 4, 4, ::ComplexInventoryTransaction::Type > mType
::ll::TypedStorage< 8, 88, ::InventoryTransaction > mTransaction

Member Function Documentation

◆ postLoadItems()

virtual void ItemUseInventoryTransaction::postLoadItems ( ::BlockPalette & blockPalette,
bool isClientSide )
virtual

Reimplemented from ComplexInventoryTransaction.

◆ onTransactionError()

virtual void ItemUseInventoryTransaction::onTransactionError ( ::Player & player,
::InventoryTransactionError error ) const
virtual

Reimplemented from ComplexInventoryTransaction.

◆ operator=()

MCAPI::ItemUseInventoryTransaction & ItemUseInventoryTransaction::operator= ( ::ItemUseInventoryTransaction const & )
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.

◆ resendBlocksAroundArea()

MCAPI void ItemUseInventoryTransaction::resendBlocksAroundArea ( ::Player & player,
::BlockPos const & pos,
uchar facing )
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.

◆ resendPlayerState()

MCAPI void ItemUseInventoryTransaction::resendPlayerState ( ::Player & player)
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.

◆ actionTypeMap()

MCAPI ::BidirectionalUnorderedMap<::ItemUseInventoryTransaction::ActionType, ::std::string > const & ItemUseInventoryTransaction::actionTypeMap ( )
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.

◆ $dtor()

MCAPI void ItemUseInventoryTransaction::$dtor ( )
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.

◆ $postLoadItems()

MCAPI void ItemUseInventoryTransaction::$postLoadItems ( ::BlockPalette & blockPalette,
bool isClientSide )
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.

◆ $onTransactionError()

MCAPI void ItemUseInventoryTransaction::$onTransactionError ( ::Player & player,
::InventoryTransactionError error ) const
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.

◆ $vftable()

MCAPI void ** ItemUseInventoryTransaction::$vftable ( )
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.

◆ _setDepenetrationOverride()

MCAPI void ComplexInventoryTransaction::_setDepenetrationOverride ( ::EntityContext & entity)
staticinherited
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.

◆ getTransactionTypeName()

MCAPI ::std::string const ComplexInventoryTransaction::getTransactionTypeName ( ::ComplexInventoryTransaction::Type type)
staticinherited
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.

◆ transactionTypeMap()

MCAPI ::BidirectionalUnorderedMap<::ComplexInventoryTransaction::Type, ::std::string > const & ComplexInventoryTransaction::transactionTypeMap ( )
staticinherited
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: