Table of Contents
-
ACTION_BREAK_BLOCK
= 2
-
ACTION_CLICK_AIR
= 1
-
ACTION_CLICK_BLOCK
= 0
-
ID
= \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_USE_ITEM
-
$actions
: array<string|int, mixed>
-
$actionType
: int
-
$blockPosition
: BlockPosition
-
$blockRuntimeId
: int
-
$clickPosition
: Vector3
-
$face
: int
-
$hotbarSlot
: int
-
$itemInHand
: ItemStackWrapper
-
$playerPosition
: Vector3
-
decode()
: void
-
encode()
: void
-
getActions()
: array<string|int, NetworkInventoryAction>
-
getActionType()
: int
-
getBlockPosition()
: BlockPosition
-
getBlockRuntimeId()
: int
-
getClickPosition()
: Vector3
-
getFace()
: int
-
getHotbarSlot()
: int
-
getItemInHand()
: ItemStackWrapper
-
getPlayerPosition()
: Vector3
-
getTypeId()
: int
-
new()
: self
-
decodeData()
: void
-
encodeData()
: void
ACTION_BREAK_BLOCK
public
mixed
ACTION_BREAK_BLOCK
= 2
ACTION_CLICK_AIR
public
mixed
ACTION_CLICK_AIR
= 1
ACTION_CLICK_BLOCK
public
mixed
ACTION_CLICK_BLOCK
= 0
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_USE_ITEM
$actions
protected
array<string|int, mixed>
$actions
= []
$actionType
private
int
$actionType
$blockPosition
private
BlockPosition
$blockPosition
$blockRuntimeId
private
int
$blockRuntimeId
$clickPosition
private
Vector3
$clickPosition
$face
private
int
$face
$hotbarSlot
private
int
$hotbarSlot
$itemInHand
private
ItemStackWrapper
$itemInHand
$playerPosition
private
Vector3
$playerPosition
decode()
public
final decode(PacketSerializer $stream) : void
Parameters
-
$stream
: PacketSerializer
-
-
throws
-
BinaryDataException
-
throws
-
PacketDecodeException
Return values
void
—
encode()
public
final encode(PacketSerializer $stream) : void
Parameters
-
$stream
: PacketSerializer
-
Return values
void
—
getActions()
public
final getActions() : array<string|int, NetworkInventoryAction>
Return values
array<string|int, NetworkInventoryAction>
—
getActionType()
public
getActionType() : int
Return values
int
—
getBlockPosition()
public
getBlockPosition() : BlockPosition
Return values
BlockPosition
—
getBlockRuntimeId()
public
getBlockRuntimeId() : int
Return values
int
—
getClickPosition()
public
getClickPosition() : Vector3
Return values
Vector3
—
getFace()
public
getFace() : int
Return values
int
—
getHotbarSlot()
public
getHotbarSlot() : int
Return values
int
—
getItemInHand()
public
getItemInHand() : ItemStackWrapper
Return values
ItemStackWrapper
—
getPlayerPosition()
public
getPlayerPosition() : Vector3
Return values
Vector3
—
getTypeId()
public
abstract getTypeId() : int
Return values
int
—
new()
public
static new(array<string|int, NetworkInventoryAction> $actions, int $actionType, BlockPosition $blockPosition, int $face, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $playerPosition, Vector3 $clickPosition, int $blockRuntimeId) : self
Parameters
-
$actions
: array<string|int, NetworkInventoryAction>
-
-
$actionType
: int
-
-
$blockPosition
: BlockPosition
-
-
$face
: int
-
-
$hotbarSlot
: int
-
-
$itemInHand
: ItemStackWrapper
-
-
$playerPosition
: Vector3
-
-
$clickPosition
: Vector3
-
-
$blockRuntimeId
: int
-
Return values
self
—
decodeData()
protected
decodeData(PacketSerializer $stream) : void
Parameters
-
$stream
: PacketSerializer
-
Return values
void
—
encodeData()
protected
encodeData(PacketSerializer $stream) : void
Parameters
-
$stream
: PacketSerializer
-
Return values
void
—