Skip to content

RakLibInterface ​

class · pocketmine\network\mcpe\raklib\RakLibInterface · source

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) : void

blockAddress() ​

php
public function blockAddress(string $address, int $timeout = 300) : void

close() ​

php
public function close(int $sessionId) : void

getRelayPort() 5.46.0 ​

php
public function getRelayPort() : int

Loopback 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) : void

onClientConnect() ​

php
public function onClientConnect(int $sessionId, string $address, int $port, int $clientID) : void

onClientDisconnect() ​

php
public function onClientDisconnect(int $sessionId, int $reason) : void

onPacketAck() ​

php
public function onPacketAck(int $sessionId, int $identifierACK) : void

onPacketReceive() ​

php
public function onPacketReceive(int $sessionId, string $packet) : void

onPingMeasure() ​

php
public function onPingMeasure(int $sessionId, int $pingMS) : void

onRawPacketReceive() ​

php
public function onRawPacketReceive(string $address, int $port, string $payload) : void

putPacket() ​

php
public function putPacket(int $sessionId, string $payload, bool $immediate = true, ?int $receiptId = null) : void

sendRawPacket() ​

php
public function sendRawPacket(string $address, int $port, string $payload) : void

setName() ​

php
public function setName(string $name) : void

setNetwork() ​

php
public function setNetwork(\pocketmine\network\Network $network) : void

setPacketLimit() ​

php
public function setPacketLimit(int $limit) : void

setPortCheck() ​

php
public function setPortCheck(bool $name) : void

shutdown() ​

php
public function shutdown() : void

start() ​

php
public function start() : void

tick() ​

php
public function tick() : void

unblockAddress() ​

php
public function unblockAddress(string $address) : void

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