NormalTransactionData
extends TransactionData
in package
Uses
GetTypeIdFromConstTrait
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_NORMAL
- $actions : array<string|int, mixed>
- decode() : void
- encode() : void
- getActions() : array<string|int, NetworkInventoryAction>
- getTypeId() : int
- new() : NormalTransactionData
- decodeData() : void
- encodeData() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\InventoryTransactionPacket::TYPE_NORMAL
Properties
$actions
protected
array<string|int, mixed>
$actions
= []
Methods
decode()
public
final decode(PacketSerializer $stream) : void
Parameters
- $stream : PacketSerializer
Tags
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> —getTypeId()
public
abstract getTypeId() : int
Return values
int —new()
public
static new(array<string|int, NetworkInventoryAction> $actions) : NormalTransactionData
Parameters
- $actions : array<string|int, NetworkInventoryAction>
Return values
NormalTransactionData —decodeData()
protected
decodeData(PacketSerializer $stream) : void
Parameters
- $stream : PacketSerializer
Return values
void —encodeData()
protected
encodeData(PacketSerializer $stream) : void
Parameters
- $stream : PacketSerializer