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
*/
abstract class LevelEventSound extends Sound{
abstract class LevelEventSound implements Sound{
/** @var float */
protected $pitch = 0;

View File

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