|
PocketMine-MP 5.39.3 git-21ae710729750cd637333d673bbbbbc598fc659e
|
Collaboration diagram for pocketmine\network\mcpe\handler\SilentDiscard:Public Member Functions | |
| __construct (public readonly string $packetClass, public readonly string $comment="",) | |
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.
| 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.