Found some things in new packets

This commit is contained in:
Dylan K. Taylor
2018-03-31 17:27:52 +01:00
parent 91486a23a5
commit db432bb024
5 changed files with 103 additions and 8 deletions

View File

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