mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Apply typehints to pocketmine\network\mcpe\protocol namespace
this is pulled from network-nuke in order to reduce the size of the diff.
This commit is contained in:
@ -76,7 +76,7 @@ class LoginPacket extends DataPacket{
|
||||
return $this->protocol !== null and $this->protocol !== ProtocolInfo::CURRENT_PROTOCOL;
|
||||
}
|
||||
|
||||
protected function decodePayload(){
|
||||
protected function decodePayload() : void{
|
||||
$this->protocol = $this->getInt();
|
||||
|
||||
if($this->protocol !== ProtocolInfo::CURRENT_PROTOCOL){
|
||||
@ -133,7 +133,7 @@ class LoginPacket extends DataPacket{
|
||||
$this->locale = $this->clientData["LanguageCode"] ?? null;
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
protected function encodePayload() : void{
|
||||
//TODO
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user