RakLibInterface
Implements raklib\server\ServerEventListener, AdvancedNetworkInterface
Methods
__construct()
php
public function __construct(\pocketmine\Server $server, string $ip, int $port, bool $ipV6, \pocketmine\network\mcpe\PacketBroadcaster $packetBroadcaster, \pocketmine\network\mcpe\EntityEventBroadcaster $entityEventBroadcaster, \pocketmine\network\mcpe\convert\TypeConverter $typeConverter, string $relayToken = "")addRawPacketFilter()
php
public function addRawPacketFilter(string $regex) : voidblockAddress()
php
public function blockAddress(string $address, int $timeout = 300) : voidclose()
php
public function close(int $sessionId) : voidgetRelayPort() 5.46.0
php
public function getRelayPort() : intLoopback port the NetherNet bridge must relay RakNet datagrams to, when this interface was created with a relay token (the bridge owns the UDP port and shares it with RakNet). 0 otherwise.
onBandwidthStatsUpdate()
php
public function onBandwidthStatsUpdate(int $bytesSentDiff, int $bytesReceivedDiff) : voidonClientConnect()
php
public function onClientConnect(int $sessionId, string $address, int $port, int $clientID) : voidonClientDisconnect()
php
public function onClientDisconnect(int $sessionId, int $reason) : voidonPacketAck()
php
public function onPacketAck(int $sessionId, int $identifierACK) : voidonPacketReceive()
php
public function onPacketReceive(int $sessionId, string $packet) : voidonPingMeasure()
php
public function onPingMeasure(int $sessionId, int $pingMS) : voidonRawPacketReceive()
php
public function onRawPacketReceive(string $address, int $port, string $payload) : voidputPacket()
php
public function putPacket(int $sessionId, string $payload, bool $immediate = true, ?int $receiptId = null) : voidsendRawPacket()
php
public function sendRawPacket(string $address, int $port, string $payload) : voidsetName()
php
public function setName(string $name) : voidsetNetwork()
php
public function setNetwork(\pocketmine\network\Network $network) : voidsetPacketLimit()
php
public function setPacketLimit(int $limit) : voidsetPortCheck()
php
public function setPortCheck(bool $name) : voidshutdown()
php
public function shutdown() : voidstart()
php
public function start() : voidtick()
php
public function tick() : voidunblockAddress()
php
public function unblockAddress(string $address) : void