PocketMine-MP 5.44.4 git-bc94a0da0c87abe7eb99d229a9ec672b3c405d11
Loading...
Searching...
No Matches
pocketmine\network\mcpe\handler\PacketHandlerInspector Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\handler\PacketHandlerInspector:

Static Public Member Functions

static getHandlerActions (PacketHandler $handler)
 

Detailed Description

Uses reflection to find out what packets a PacketHandler class type will actually process, so that decoding can be skipped for packets that are never handled. The reflected information is cached for subsequent use.

Definition at line 41 of file PacketHandlerInspector.php.

Member Function Documentation

◆ getHandlerActions()

static pocketmine\network\mcpe\handler\PacketHandlerInspector::getHandlerActions ( PacketHandler $handler)
static
Returns
PacketHandlerAction[] @phpstan-return array<class-string<Packet>, PacketHandlerAction>

Definition at line 53 of file PacketHandlerInspector.php.


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