Skip to content

NetherNetPacketSender 5.46.0 ​

final class · pocketmine\network\mcpe\nethernet\NetherNetPacketSender · source

Implements TransportAwarePacketSender

Methods ​

__construct() ​

php
public function __construct(int $sessionId, \pocketmine\network\mcpe\nethernet\NetherNetInterface $handler, ?string $peerPublicKey)

close() ​

php
public function close(string $reason = "unknown reason") : void

getPeerPublicKey() ​

php
public function getPeerPublicKey() : ?string

getTransportName() ​

php
public function getTransportName() : string

isTransportEncrypted() ​

php
public function isTransportEncrypted() : bool

send() ​

php
public function send(string $payload, bool $immediate, ?int $receiptId) : void

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