mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Merge branch 'release/3.2'
This commit is contained in:
commit
dbf5d9e985
@ -30,14 +30,22 @@ use pocketmine\network\mcpe\handler\SessionHandler;
|
|||||||
class GuiDataPickItemPacket extends DataPacket{
|
class GuiDataPickItemPacket extends DataPacket{
|
||||||
public const NETWORK_ID = ProtocolInfo::GUI_DATA_PICK_ITEM_PACKET;
|
public const NETWORK_ID = ProtocolInfo::GUI_DATA_PICK_ITEM_PACKET;
|
||||||
|
|
||||||
|
/** @var string */
|
||||||
|
public $itemDescription;
|
||||||
|
/** @var string */
|
||||||
|
public $itemEffects;
|
||||||
/** @var int */
|
/** @var int */
|
||||||
public $hotbarSlot;
|
public $hotbarSlot;
|
||||||
|
|
||||||
protected function decodePayload() : void{
|
protected function decodePayload() : void{
|
||||||
|
$this->itemDescription = $this->getString();
|
||||||
|
$this->itemEffects = $this->getString();
|
||||||
$this->hotbarSlot = $this->getLInt();
|
$this->hotbarSlot = $this->getLInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function encodePayload() : void{
|
protected function encodePayload() : void{
|
||||||
|
$this->putString($this->itemDescription);
|
||||||
|
$this->putString($this->itemEffects);
|
||||||
$this->putLInt($this->hotbarSlot);
|
$this->putLInt($this->hotbarSlot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user