Merge branch 'release/3.0' into release/3.1

This commit is contained in:
Dylan K. Taylor 2018-08-11 19:37:10 +01:00
commit 974583a853

View File

@ -30,14 +30,22 @@ use pocketmine\network\mcpe\NetworkSession;
class GuiDataPickItemPacket extends DataPacket{
public const NETWORK_ID = ProtocolInfo::GUI_DATA_PICK_ITEM_PACKET;
/** @var string */
public $itemDescription;
/** @var string */
public $itemEffects;
/** @var int */
public $hotbarSlot;
protected function decodePayload(){
$this->itemDescription = $this->getString();
$this->itemEffects = $this->getString();
$this->hotbarSlot = $this->getLInt();
}
protected function encodePayload(){
$this->putString($this->itemDescription);
$this->putString($this->itemEffects);
$this->putLInt($this->hotbarSlot);
}