Skip to content

RawPacketHandler ​

interface · pocketmine\network\RawPacketHandler · source

Methods ​

getPattern() ​

php
public function getPattern() : string

Returns 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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.