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:
@ -43,13 +43,13 @@ class BlockPickRequestPacket extends DataPacket{
|
||||
/** @var int */
|
||||
public $hotbarSlot;
|
||||
|
||||
protected function decodePayload(){
|
||||
protected function decodePayload() : void{
|
||||
$this->getSignedBlockPosition($this->blockX, $this->blockY, $this->blockZ);
|
||||
$this->addUserData = $this->getBool();
|
||||
$this->hotbarSlot = $this->getByte();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
protected function encodePayload() : void{
|
||||
$this->putSignedBlockPosition($this->blockX, $this->blockY, $this->blockZ);
|
||||
$this->putBool($this->addUserData);
|
||||
$this->putByte($this->hotbarSlot);
|
||||
|
Reference in New Issue
Block a user