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:
Dylan K. Taylor
2018-07-05 13:19:15 +01:00
parent fbd4f4a849
commit 2bba3a0805
116 changed files with 255 additions and 255 deletions

View File

@ -49,7 +49,7 @@ class PlayStatusPacket extends DataPacket{
*/
public $protocol;
protected function decodePayload(){
protected function decodePayload() : void{
$this->status = $this->getInt();
}
@ -57,7 +57,7 @@ class PlayStatusPacket extends DataPacket{
return true;
}
protected function encodeHeader(){
protected function encodeHeader() : void{
if($this->protocol < 130){ //MCPE <= 1.1
$this->putByte(static::NETWORK_ID);
}else{
@ -65,7 +65,7 @@ class PlayStatusPacket extends DataPacket{
}
}
protected function encodePayload(){
protected function encodePayload() : void{
$this->putInt($this->status);
}