mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
Updated to new RakLib
This commit is contained in:
@ -33,12 +33,16 @@ use pocketmine\Player;
|
||||
interface SourceInterface{
|
||||
|
||||
/**
|
||||
* Sends a DataPacket to the interface
|
||||
* Sends a DataPacket to the interface, returns an unique identifier for the packet if $needACK is true
|
||||
*
|
||||
* @param Player $player
|
||||
* @param DataPacket $packet
|
||||
* @param bool $needACK
|
||||
* @param bool $immediate
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function putPacket(Player $player, DataPacket $packet);
|
||||
public function putPacket(Player $player, DataPacket $packet, $needACK = false, $immediate = true);
|
||||
|
||||
/**
|
||||
* Terminates the connection
|
||||
@ -49,6 +53,11 @@ interface SourceInterface{
|
||||
*/
|
||||
public function close(Player $player, $reason = "unknown reason");
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
|
Reference in New Issue
Block a user