PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
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 (PacketSerializer $stream)
 
 encode (PacketSerializer $stream)
 
 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 (PacketSerializer $stream)
 
 encodeData (PacketSerializer $stream)
 

Protected Attributes

array $actions = []
 

Detailed Description

Definition at line 22 of file UseItemOnEntityTransactionData.php.

Member Function Documentation

◆ decode()

pocketmine\network\mcpe\protocol\types\inventory\TransactionData::decode ( PacketSerializer  $stream)
finalinherited
Exceptions
BinaryDataException
PacketDecodeException

Definition at line 39 of file TransactionData.php.

◆ decodeData()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::decodeData ( PacketSerializer  $stream)
protected
Exceptions
BinaryDataException
PacketDecodeException

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

Definition at line 62 of file UseItemOnEntityTransactionData.php.

◆ encode()

pocketmine\network\mcpe\protocol\types\inventory\TransactionData::encode ( PacketSerializer  $stream)
finalinherited

Definition at line 53 of file TransactionData.php.

◆ encodeData()

pocketmine\network\mcpe\protocol\types\inventory\UseItemOnEntityTransactionData::encodeData ( PacketSerializer  $stream)
protected

◆ getActions()

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

Definition at line 29 of file TransactionData.php.

◆ getActionType()

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

Definition at line 42 of file UseItemOnEntityTransactionData.php.

◆ getActorRuntimeId()

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

Definition at line 38 of file UseItemOnEntityTransactionData.php.

◆ getClickPosition()

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

Definition at line 58 of file UseItemOnEntityTransactionData.php.

◆ getHotbarSlot()

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

Definition at line 46 of file UseItemOnEntityTransactionData.php.

◆ getItemInHand()

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

Definition at line 50 of file UseItemOnEntityTransactionData.php.

◆ getPlayerPosition()

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

Definition at line 54 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 83 of file UseItemOnEntityTransactionData.php.

Member Data Documentation

◆ $actions

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

Definition at line 24 of file TransactionData.php.

◆ ACTION_ATTACK

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

Definition at line 28 of file UseItemOnEntityTransactionData.php.

◆ ACTION_INTERACT

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

Definition at line 27 of file UseItemOnEntityTransactionData.php.

◆ ACTION_ITEM_INTERACT

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

Definition at line 29 of file UseItemOnEntityTransactionData.php.

◆ ID

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

Definition at line 25 of file UseItemOnEntityTransactionData.php.


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