Skip to content

DataPacketReceiveEvent ​

class · pocketmine\event\server\DataPacketReceiveEvent · source

Extends ServerEvent
Implements Cancellable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\network\mcpe\NetworkSession $origin, \pocketmine\network\mcpe\protocol\ServerboundPacket $packet)

getOrigin() ​

php
public function getOrigin() : \pocketmine\network\mcpe\NetworkSession

getPacket() ​

php
public function getPacket() : \pocketmine\network\mcpe\protocol\ServerboundPacket

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