PocketMine-MP 5.42.2 git-88c18cd9cf7fc37bd5261e6f29ed6041bfe776f1
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\PacketPool Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\PacketPool:

Public Member Functions

 getAll ()
 
 getPacket (string $buffer)
 
 getPacketById (int $pid)
 
 registerPacket (Packet $packet)
 

Static Public Member Functions

static getInstance ()
 

Protected Attributes

SplFixedArray $pool
 

Static Protected Attributes

static PacketPool $instance = null
 

Detailed Description

Definition at line 22 of file PacketPool.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\PacketPool::__construct ( )

Definition at line 35 of file PacketPool.php.

Member Function Documentation

◆ getAll()

pocketmine\network\mcpe\protocol\PacketPool::getAll ( )
Returns
Packet[] @phpstan-return array<int, Packet>

Definition at line 283 of file PacketPool.php.

◆ getInstance()

static pocketmine\network\mcpe\protocol\PacketPool::getInstance ( )
static

Definition at line 25 of file PacketPool.php.

◆ getPacket()

pocketmine\network\mcpe\protocol\PacketPool::getPacket ( string $buffer)
Exceptions
DataDecodeException

Definition at line 275 of file PacketPool.php.

Referenced by pocketmine\network\mcpe\protocol\serializer\PacketBatch\decodePackets().

+ Here is the caller graph for this function:

◆ getPacketById()

pocketmine\network\mcpe\protocol\PacketPool::getPacketById ( int $pid)

Definition at line 268 of file PacketPool.php.

◆ registerPacket()

pocketmine\network\mcpe\protocol\PacketPool::registerPacket ( Packet $packet)

Definition at line 264 of file PacketPool.php.

Member Data Documentation

◆ $instance

PacketPool pocketmine\network\mcpe\protocol\PacketPool::$instance = null
staticprotected

Definition at line 23 of file PacketPool.php.

◆ $pool

SplFixedArray pocketmine\network\mcpe\protocol\PacketPool::$pool
protected

Definition at line 33 of file PacketPool.php.


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