PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
Loading...
Searching...
No Matches
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 (ByteBufferReader $in)
 
 encode (ByteBufferWriter $out)
 
 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 (ByteBufferReader $in)
 
 encodeData (ByteBufferWriter $out)
 

Protected Attributes

array $actions = []
 

Detailed Description

Definition at line 25 of file ReleaseItemTransactionData.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\ReleaseItemTransactionData::decodeData ( ByteBufferReader $in)
protected
Exceptions
DataDecodeException
PacketDecodeException

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

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

Definition at line 38 of file ReleaseItemTransactionData.php.

◆ getHeadPosition()

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

Definition at line 50 of file ReleaseItemTransactionData.php.

◆ getHotbarSlot()

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

Definition at line 42 of file ReleaseItemTransactionData.php.

◆ getItemInHand()

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

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

Member Data Documentation

◆ $actions

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

Definition at line 26 of file TransactionData.php.

◆ ACTION_CONSUME

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

Definition at line 31 of file ReleaseItemTransactionData.php.

◆ ACTION_RELEASE

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

Definition at line 30 of file ReleaseItemTransactionData.php.

◆ ID

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

Definition at line 28 of file ReleaseItemTransactionData.php.


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