PocketMine-MP 5.27.2 git-835c383d4e126df6f38000e3217ad6a325b7a1f7
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData:

Public Member Functions

 decode (PacketSerializer $stream)
 
 encode (PacketSerializer $stream)
 
 getActions ()
 
 getActionType ()
 
 getBlockPosition ()
 
 getBlockRuntimeId ()
 
 getClickPosition ()
 
 getClientInteractPrediction ()
 
 getFace ()
 
 getHotbarSlot ()
 
 getItemInHand ()
 
 getPlayerPosition ()
 
 getTriggerType ()
 
 getTypeId ()
 

Static Public Member Functions

static new (array $actions, int $actionType, TriggerType $triggerType, BlockPosition $blockPosition, int $face, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $playerPosition, Vector3 $clickPosition, int $blockRuntimeId, PredictedResult $clientInteractPrediction)
 

Public Attributes

const ACTION_BREAK_BLOCK = 2
 
const ACTION_CLICK_AIR = 1
 
const ACTION_CLICK_BLOCK = 0
 
const ID = InventoryTransactionPacket::TYPE_USE_ITEM
 

Protected Member Functions

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

Protected Attributes

array $actions = []
 

Detailed Description

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

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

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

Definition at line 43 of file UseItemTransactionData.php.

◆ getBlockPosition()

pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getBlockPosition ( )

Definition at line 49 of file UseItemTransactionData.php.

◆ getBlockRuntimeId()

pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getBlockRuntimeId ( )

Definition at line 73 of file UseItemTransactionData.php.

◆ getClickPosition()

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

Definition at line 69 of file UseItemTransactionData.php.

◆ getClientInteractPrediction()

pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getClientInteractPrediction ( )

Definition at line 77 of file UseItemTransactionData.php.

◆ getFace()

pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getFace ( )

Definition at line 53 of file UseItemTransactionData.php.

◆ getHotbarSlot()

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

Definition at line 57 of file UseItemTransactionData.php.

◆ getItemInHand()

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

Definition at line 61 of file UseItemTransactionData.php.

◆ getPlayerPosition()

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

Definition at line 65 of file UseItemTransactionData.php.

◆ getTriggerType()

pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::getTriggerType ( )

Definition at line 47 of file UseItemTransactionData.php.

◆ new()

static pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::new ( array $actions,
int $actionType,
TriggerType $triggerType,
BlockPosition $blockPosition,
int $face,
int $hotbarSlot,
ItemStackWrapper $itemInHand,
Vector3 $playerPosition,
Vector3 $clickPosition,
int $blockRuntimeId,
PredictedResult $clientInteractPrediction )
static
Parameters
NetworkInventoryAction[]$actions

Definition at line 108 of file UseItemTransactionData.php.

Member Data Documentation

◆ $actions

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

Definition at line 24 of file TransactionData.php.

◆ ACTION_BREAK_BLOCK

const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_BREAK_BLOCK = 2

Definition at line 30 of file UseItemTransactionData.php.

◆ ACTION_CLICK_AIR

const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_CLICK_AIR = 1

Definition at line 29 of file UseItemTransactionData.php.

◆ ACTION_CLICK_BLOCK

const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ACTION_CLICK_BLOCK = 0

Definition at line 28 of file UseItemTransactionData.php.

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData::ID = InventoryTransactionPacket::TYPE_USE_ITEM

Definition at line 26 of file UseItemTransactionData.php.


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