PocketMine-MP 5.43.3 git-4e2b0ce88fd28aa124b51efe324b94ceebb999fe
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: