PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData:

Public Member Functions

 decode (PacketSerializer $stream)
 
 encode (PacketSerializer $stream)
 
 getActions ()
 
 getActionType ()
 
 getHeadPosition ()
 
 getHotbarSlot ()
 
 getItemInHand ()
 
 getTypeId ()
 

Static Public Member Functions

static new (array $actions, int $actionType, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $headPosition)
 

Public Attributes

const ACTION_CONSUME = 1
 
const ACTION_RELEASE = 0
 
const ID = InventoryTransactionPacket::TYPE_RELEASE_ITEM
 

Protected Member Functions

 decodeData (PacketSerializer $stream)
 
 encodeData (PacketSerializer $stream)
 

Protected Attributes

array $actions = []
 

Detailed Description

Definition at line 22 of file ReleaseItemTransactionData.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\ReleaseItemTransactionData::decodeData ( PacketSerializer  $stream)
protected
Exceptions
BinaryDataException
PacketDecodeException

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

Definition at line 51 of file ReleaseItemTransactionData.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\ReleaseItemTransactionData::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\ReleaseItemTransactionData::getActionType ( )

Definition at line 35 of file ReleaseItemTransactionData.php.

◆ getHeadPosition()

pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData::getHeadPosition ( )

Definition at line 47 of file ReleaseItemTransactionData.php.

◆ getHotbarSlot()

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

Definition at line 39 of file ReleaseItemTransactionData.php.

◆ getItemInHand()

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

Definition at line 43 of file ReleaseItemTransactionData.php.

◆ new()

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

Definition at line 68 of file ReleaseItemTransactionData.php.

Member Data Documentation

◆ $actions

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

Definition at line 24 of file TransactionData.php.

◆ ACTION_CONSUME

const pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData::ACTION_CONSUME = 1

Definition at line 28 of file ReleaseItemTransactionData.php.

◆ ACTION_RELEASE

const pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData::ACTION_RELEASE = 0

Definition at line 27 of file ReleaseItemTransactionData.php.

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\ReleaseItemTransactionData::ID = InventoryTransactionPacket::TYPE_RELEASE_ITEM

Definition at line 25 of file ReleaseItemTransactionData.php.


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