more packets

This commit is contained in:
Dylan K. Taylor
2017-08-13 17:42:11 +01:00
parent 02cbf800d0
commit 1576a79644
4 changed files with 167 additions and 11 deletions

View File

@ -30,12 +30,15 @@ use pocketmine\network\mcpe\NetworkSession;
class ShowProfilePacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::SHOW_PROFILE_PACKET;
/** @var string */
public $string1;
protected function decodePayload(){
//TODO
$this->string1 = $this->getString();
}
protected function encodePayload(){
//TODO
$this->putString($this->string1);
}
public function handle(NetworkSession $session) : bool{