PlayerBlockActionWithBlockInfo
in package
implements
PlayerBlockAction
This is used for PlayerAuthInput packet when the flags include PERFORM_BLOCK_ACTIONS
Interfaces, Classes, Traits and Enums
- PlayerBlockAction
- This is used for PlayerAuthInput packet when the flags include PERFORM_BLOCK_ACTIONS
Table of Contents
- $actionType : int
- $blockPosition : BlockPosition
- $face : int
- __construct() : mixed
- getActionType() : int
- getBlockPosition() : BlockPosition
- getFace() : int
- isValidActionType() : bool
- read() : self
- write() : void
Properties
$actionType
private
int
$actionType
$blockPosition
private
BlockPosition
$blockPosition
$face
private
int
$face
Methods
__construct()
public
__construct(int $actionType, BlockPosition $blockPosition, int $face) : mixed
Parameters
- $actionType : int
- $blockPosition : BlockPosition
- $face : int
Return values
mixed —getActionType()
public
getActionType() : int
Return values
int —getBlockPosition()
public
getBlockPosition() : BlockPosition
Return values
BlockPosition —getFace()
public
getFace() : int
Return values
int —isValidActionType()
public
static isValidActionType(int $actionType) : bool
Parameters
- $actionType : int
Return values
bool —read()
public
static read(PacketSerializer $in, int $actionType) : self
Parameters
- $in : PacketSerializer
- $actionType : int
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer