mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Merge branch 'master' into mcpe-1.2.5
This commit is contained in:
@ -31,17 +31,17 @@ class EntityPickRequestPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::ENTITY_PICK_REQUEST_PACKET;
|
||||
|
||||
/** @var int */
|
||||
public $entityTypeId;
|
||||
public $entityUniqueId;
|
||||
/** @var int */
|
||||
public $hotbarSlot;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->entityTypeId = $this->getLLong();
|
||||
$this->entityUniqueId = $this->getLLong();
|
||||
$this->hotbarSlot = $this->getByte();
|
||||
}
|
||||
|
||||
protected function encodePayload(){
|
||||
$this->putLLong($this->entityTypeId);
|
||||
$this->putLLong($this->entityUniqueId);
|
||||
$this->putByte($this->hotbarSlot);
|
||||
}
|
||||
|
||||
|
@ -45,5 +45,6 @@ interface WindowTypes{
|
||||
const STRUCTURE_EDITOR = 14;
|
||||
const TRADING = 15;
|
||||
const COMMAND_BLOCK = 16;
|
||||
const JUKEBOX = 17;
|
||||
|
||||
}
|
Reference in New Issue
Block a user