RawPacketHandler
Methods
getPattern()
php
public function getPattern() : stringReturns a preg_match() compatible regex pattern used to filter packets on this handler. Only packets matching this pattern will be delivered to the handler.
handle()
php
public function handle(\pocketmine\network\AdvancedNetworkInterface $interface, string $address, int $port, string $packet) : bool