Convert Sound into interface

This commit is contained in:
Dylan K. Taylor 2019-01-23 12:10:24 +00:00
parent 2356991022
commit 23a18a8eb6
2 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,7 @@ use pocketmine\network\mcpe\protocol\LevelEventPacket;
/** /**
* @internal * @internal
*/ */
abstract class LevelEventSound extends Sound{ abstract class LevelEventSound implements Sound{
/** @var float */ /** @var float */
protected $pitch = 0; protected $pitch = 0;

View File

@ -26,13 +26,12 @@ namespace pocketmine\level\sound;
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\network\mcpe\protocol\ClientboundPacket; use pocketmine\network\mcpe\protocol\ClientboundPacket;
abstract class Sound{ interface Sound{
/** /**
* @param Vector3 $pos * @param Vector3 $pos
* *
* @return ClientboundPacket|ClientboundPacket[] * @return ClientboundPacket|ClientboundPacket[]
*/ */
abstract public function encode(Vector3 $pos); public function encode(Vector3 $pos);
} }