Skip to content

NetworkInterface ​

interface · pocketmine\network\NetworkInterface · source

Network interfaces are transport layers which can be used to transmit packets between the server and clients.

Methods ​

setName() ​

php
public function setName(string $name) : void

shutdown() ​

php
public function shutdown() : void

Gracefully shuts down the network interface.

start() ​

php
public function start() : void

Performs actions needed to start the interface after it is registered.

tick() ​

php
public function tick() : void

Called every tick to process events on the interface.

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