mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +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:
@ -40,14 +40,14 @@ class PlayerInputPacket extends DataPacket{
|
||||
/** @var bool */
|
||||
public $sneaking;
|
||||
|
||||
protected function decodePayload(){
|
||||
protected function decodePayload() : void{
|
||||
$this->motionX = $this->getLFloat();
|
||||
$this->motionY = $this->getLFloat();
|
||||
$this->jumping = $this->getBool();
|
||||
$this->sneaking = $this->getBool();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
protected function encodePayload() : void{
|
||||
$this->putLFloat($this->motionX);
|
||||
$this->putLFloat($this->motionY);
|
||||
$this->putBool($this->jumping);
|
||||
|
Reference in New Issue
Block a user