mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
New fields for PlaySoundPacket and StopSoundPacket
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user