New fields for PlaySoundPacket and StopSoundPacket

This commit is contained in:
Dylan K. Taylor
2017-05-15 16:19:08 +01:00
parent 0a4d62b405
commit fe3b5bac51
2 changed files with 12 additions and 12 deletions

View File

@ -30,17 +30,17 @@ use pocketmine\network\mcpe\NetworkSession;
class StopSoundPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::STOP_SOUND_PACKET;
public $string1;
public $soundName;
public $stopAll;
public function decode(){
$this->string1 = $this->getString();
$this->soundName = $this->getString();
$this->stopAll = $this->getBool();
}
public function encode(){
$this->reset();
$this->putString($this->string1);
$this->putString($this->soundName);
$this->putBool($this->stopAll);
}