PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData:

Public Member Functions

 decode (ByteBufferReader $in)
 
 encode (ByteBufferWriter $out)
 
 getActions ()
 
 getActionType ()
 
 getActorRuntimeId ()
 
 getClickPosition ()
 
 getHotbarSlot ()
 
 getItemInHand ()
 
 getPlayerPosition ()
 
 getTypeId ()
 

Static Public Member Functions

static new (array $actions, int $actorRuntimeId, int $actionType, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $playerPosition, Vector3 $clickPosition)
 

Public Attributes

const ACTION_ATTACK = 1
 
const ACTION_INTERACT = 0
 
const ACTION_ITEM_INTERACT = 2
 
const ID = InventoryTransactionPacket::TYPE_USE_ITEM_ON_ENTITY
 

Protected Member Functions

 decodeData (ByteBufferReader $in)
 
 encodeData (ByteBufferWriter $out)
 

Protected Attributes

array $actions = []
 

Detailed Description

Definition at line 25 of file UseItemOnEntityTransactionData.php.

Member Function Documentation

◆ decode()

pocketmine\network\mcpe\protocol\types\inventory\TransactionData::decode ( ByteBufferReader $in)
finalinherited
Exceptions
DataDecodeException
PacketDecodeException

Definition at line 41 of file TransactionData.php.

◆ decodeData()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::decodeData ( ByteBufferReader $in)
protected
Exceptions
DataDecodeException
PacketDecodeException

Reimplemented from pocketmine\network\mcpe\protocol\types\inventory\TransactionData.

Definition at line 65 of file UseItemOnEntityTransactionData.php.

◆ encode()

pocketmine\network\mcpe\protocol\types\inventory\TransactionData::encode ( ByteBufferWriter $out)
finalinherited

Definition at line 55 of file TransactionData.php.

◆ encodeData()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::encodeData ( ByteBufferWriter $out)
protected

◆ getActions()

pocketmine\network\mcpe\protocol\types\inventory\TransactionData::getActions ( )
finalinherited
Returns
NetworkInventoryAction[]

Definition at line 31 of file TransactionData.php.

◆ getActionType()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getActionType ( )

Definition at line 45 of file UseItemOnEntityTransactionData.php.

◆ getActorRuntimeId()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getActorRuntimeId ( )

Definition at line 41 of file UseItemOnEntityTransactionData.php.

◆ getClickPosition()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getClickPosition ( )

Definition at line 61 of file UseItemOnEntityTransactionData.php.

◆ getHotbarSlot()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getHotbarSlot ( )

Definition at line 49 of file UseItemOnEntityTransactionData.php.

◆ getItemInHand()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getItemInHand ( )

Definition at line 53 of file UseItemOnEntityTransactionData.php.

◆ getPlayerPosition()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::getPlayerPosition ( )

Definition at line 57 of file UseItemOnEntityTransactionData.php.

◆ new()

static pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::new ( array $actions,
int $actorRuntimeId,
int $actionType,
int $hotbarSlot,
ItemStackWrapper $itemInHand,
Vector3 $playerPosition,
Vector3 $clickPosition )
static
Parameters
NetworkInventoryAction[]$actions

Definition at line 100 of file UseItemOnEntityTransactionData.php.

Member Data Documentation

◆ $actions

array pocketmine\network\mcpe\protocol\types\inventory\TransactionData::$actions = []
protectedinherited

Definition at line 26 of file TransactionData.php.

◆ ACTION_ATTACK

const pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::ACTION_ATTACK = 1

Definition at line 31 of file UseItemOnEntityTransactionData.php.

◆ ACTION_INTERACT

const pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::ACTION_INTERACT = 0

Definition at line 30 of file UseItemOnEntityTransactionData.php.

◆ ACTION_ITEM_INTERACT

const pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::ACTION_ITEM_INTERACT = 2

Definition at line 32 of file UseItemOnEntityTransactionData.php.

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::ID = InventoryTransactionPacket::TYPE_USE_ITEM_ON_ENTITY

Definition at line 28 of file UseItemOnEntityTransactionData.php.


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