mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-10 15:59:39 +00:00
Convert Sound into interface
This commit is contained in:
parent
2356991022
commit
23a18a8eb6
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user