mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Add decode for LevelSoundEventPacket
TODO: find new fields, find out when client sends this
This commit is contained in:
parent
d6fcc59a49
commit
01d465b038
@ -33,9 +33,15 @@ class LevelSoundEventPacket extends DataPacket{
|
||||
public $volume;
|
||||
public $pitch;
|
||||
public $unknownBool;
|
||||
public $unknownBool2;
|
||||
|
||||
public function decode(){
|
||||
|
||||
$this->sound = $this->getByte();
|
||||
$this->getVector3f($this->x, $this->y, $this->z);
|
||||
$this->volume = $this->getVarInt();
|
||||
$this->pitch = $this->getVarInt();
|
||||
$this->unknownBool = $this->getBool();
|
||||
$this->unknownBool2 = $this->getBool();
|
||||
}
|
||||
|
||||
public function encode(){
|
||||
@ -45,5 +51,6 @@ class LevelSoundEventPacket extends DataPacket{
|
||||
$this->putVarInt($this->volume);
|
||||
$this->putVarInt($this->pitch);
|
||||
$this->putBool($this->unknownBool);
|
||||
$this->putBool($this->unknownBool2);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user