mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09: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
|
* @internal
|
||||||
*/
|
*/
|
||||||
abstract class LevelEventSound extends Sound{
|
abstract class LevelEventSound implements Sound{
|
||||||
|
|
||||||
/** @var float */
|
/** @var float */
|
||||||
protected $pitch = 0;
|
protected $pitch = 0;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user