mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Add typehints to completedusingitempacket
This commit is contained in:
parent
3061eb4157
commit
898af49e97
@ -50,12 +50,12 @@ class CompletedUsingItemPacket extends DataPacket{
|
||||
/** @var int */
|
||||
public $action;
|
||||
|
||||
public function decodePayload(){
|
||||
public function decodePayload() : void{
|
||||
$this->itemId = $this->getShort();
|
||||
$this->action = $this->getLInt();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
public function encodePayload() : void{
|
||||
$this->putShort($this->itemId);
|
||||
$this->putLInt($this->action);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user