Skip to content

RakLibServer ​

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

Extends Thread

Properties ​

$address protected ​

php
protected \pocketmine\thread\NonThreadSafeValue $address

$antiSpoofingCookies 5.46.0 ​

php
public bool $antiSpoofingCookies

$logger ​

php
public \pocketmine\thread\log\ThreadSafeLogger $logger

$mainPath protected ​

php
protected string $mainPath

$mainToThreadBuffer ​

php
public \pmmp\thread\ThreadSafeArray $mainToThreadBuffer

$maxMtuSize ​

php
public int $maxMtuSize

$protocolVersion ​

php
public int $protocolVersion

$ready protected ​

php
protected bool $ready

$relayPort 5.46.0 protected ​

php
protected int $relayPort

$relayToken 5.46.0 ​

php
public string $relayToken

$serverId ​

php
public int $serverId

$sleeperEntry ​

php
public \pocketmine\snooze\SleeperHandlerEntry $sleeperEntry

$threadToMainBuffer ​

php
public \pmmp\thread\ThreadSafeArray $threadToMainBuffer

Methods ​

__construct() ​

php
public function __construct(\pocketmine\thread\log\ThreadSafeLogger $logger, \pmmp\thread\ThreadSafeArray $mainToThreadBuffer, \pmmp\thread\ThreadSafeArray $threadToMainBuffer, \raklib\utils\InternetAddress $address, int $serverId, int $maxMtuSize, int $protocolVersion, \pocketmine\snooze\SleeperHandlerEntry $sleeperEntry, string $relayToken = "", bool $antiSpoofingCookies = false)

getRelayPort() 5.46.0 ​

php
public function getRelayPort() : int

Loopback port of the relay socket when the UDP port is shared with the NetherNet bridge, 0 otherwise.

getThreadName() ​

php
public function getThreadName() : string

onRun() protected ​

php
protected function onRun() : void

startAndWait() ​

php
public function startAndWait(int $options = \pmmp\thread\Thread::INHERIT_NONE) : void

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