Table of Contents
-
ACTION_ATTACK
= 1
-
ACTION_INTERACT
= 0
-
ACTION_ITEM_INTERACT
= 2
-
ID
= \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_USE_ITEM_ON_ENTITY
-
$actions
: array<string|int, mixed>
-
$actionType
: int
-
$actorRuntimeId
: int
-
$clickPosition
: Vector3
-
$hotbarSlot
: int
-
$itemInHand
: ItemStackWrapper
-
$playerPosition
: Vector3
-
decode()
: void
-
encode()
: void
-
getActions()
: array<string|int, NetworkInventoryAction>
-
getActionType()
: int
-
getActorRuntimeId()
: int
-
getClickPosition()
: Vector3
-
getHotbarSlot()
: int
-
getItemInHand()
: ItemStackWrapper
-
getPlayerPosition()
: Vector3
-
getTypeId()
: int
-
new()
: self
-
decodeData()
: void
-
encodeData()
: void
ACTION_ATTACK
public
mixed
ACTION_ATTACK
= 1
ACTION_INTERACT
public
mixed
ACTION_INTERACT
= 0
ACTION_ITEM_INTERACT
public
mixed
ACTION_ITEM_INTERACT
= 2
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_USE_ITEM_ON_ENTITY
$actions
protected
array<string|int, mixed>
$actions
= []
$actionType
private
int
$actionType
$actorRuntimeId
private
int
$actorRuntimeId
$clickPosition
private
Vector3
$clickPosition
$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
—
getActorRuntimeId()
public
getActorRuntimeId() : int
Return values
int
—
getClickPosition()
public
getClickPosition() : Vector3
Return values
Vector3
—
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 $actorRuntimeId, int $actionType, int $hotbarSlot, ItemStackWrapper $itemInHand, Vector3 $playerPosition, Vector3 $clickPosition) : self
Parameters
-
$actions
: array<string|int, NetworkInventoryAction>
-
-
$actorRuntimeId
: int
-
-
$actionType
: int
-
-
$hotbarSlot
: int
-
-
$itemInHand
: ItemStackWrapper
-
-
$playerPosition
: Vector3
-
-
$clickPosition
: Vector3
-
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
—