PocketMine-MP 5.39.3 git-21ae710729750cd637333d673bbbbbc598fc659e
Loading...
Searching...
No Matches
pocketmine\network\mcpe\handler\SilentDiscard Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\handler\SilentDiscard:

Public Member Functions

 __construct (public readonly string $packetClass, public readonly string $comment="",)
 

Detailed Description

When a packet's default handler isn't overridden, packets will normally be dropped without decoding and a debug message will be logged. This attribute allows suppressing the debug message in this case, without overriding the handler (which would force the packet to be decoded, wasting CPU time).

Definition at line 34 of file SilentDiscard.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\handler\SilentDiscard::__construct ( public readonly string $packetClass,
public readonly string $comment = "" )

@phpstan-param class-string<covariant Packet> $packetClass

Definition at line 39 of file SilentDiscard.php.


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