Moved EntityLink to its own type

This commit is contained in:
Dylan K. Taylor
2017-10-09 19:15:53 +01:00
parent 78ca2f2e58
commit eccc7bf7b3
5 changed files with 60 additions and 12 deletions

View File

@ -27,12 +27,13 @@ namespace pocketmine\network\mcpe\protocol;
use pocketmine\network\mcpe\NetworkSession;
use pocketmine\network\mcpe\protocol\types\EntityLink;
class SetEntityLinkPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::SET_ENTITY_LINK_PACKET;
/** @var array [from, to, type, unknown byte] */
public $link = [];
/** @var EntityLink */
public $link;
protected function decodePayload(){
$this->link = $this->getEntityLink();