PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo:

Public Member Functions

 __construct (private int $actionType, private BlockPosition $blockPosition, private int $face)
 
 getActionType ()
 
 getBlockPosition ()
 
 getFace ()
 
 write (PacketSerializer $out)
 

Static Public Member Functions

static isValidActionType (int $actionType)
 
static read (PacketSerializer $in, int $actionType)
 

Detailed Description

This is used for PlayerAuthInput packet when the flags include PERFORM_BLOCK_ACTIONS

Definition at line 20 of file PlayerBlockActionWithBlockInfo.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::__construct ( private int  $actionType,
private BlockPosition  $blockPosition,
private int  $face 
)

Definition at line 21 of file PlayerBlockActionWithBlockInfo.php.

Member Function Documentation

◆ getActionType()

pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::getActionType ( )

◆ getBlockPosition()

pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::getBlockPosition ( )

Definition at line 33 of file PlayerBlockActionWithBlockInfo.php.

◆ getFace()

pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::getFace ( )

Definition at line 35 of file PlayerBlockActionWithBlockInfo.php.

◆ isValidActionType()

static pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::isValidActionType ( int  $actionType)
static

Definition at line 48 of file PlayerBlockActionWithBlockInfo.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::read ( PacketSerializer  $in,
int  $actionType 
)
static

Definition at line 37 of file PlayerBlockActionWithBlockInfo.php.

◆ write()

pocketmine\network\mcpe\protocol\types\PlayerBlockActionWithBlockInfo::write ( PacketSerializer  $out)

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