More broken mess to spawn 1.2

This commit is contained in:
Dylan K. Taylor
2017-08-01 20:06:02 +01:00
parent 10ff2948ac
commit 77cd8e7799
52 changed files with 1558 additions and 506 deletions

View File

@ -31,20 +31,15 @@ use pocketmine\network\mcpe\NetworkSession;
class SetEntityLinkPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::SET_ENTITY_LINK_PACKET;
public $from;
public $to;
public $type;
/** @var array [from, to, type, unknown byte] */
public $link = [];
public function decodePayload(){
$this->from = $this->getEntityUniqueId();
$this->to = $this->getEntityUniqueId();
$this->type = $this->getByte();
$this->link = $this->getEntityLink();
}
public function encodePayload(){
$this->putEntityUniqueId($this->from);
$this->putEntityUniqueId($this->to);
$this->putByte($this->type);
$this->putEntityLink($this->link);
}
public function handle(NetworkSession $session) : bool{