mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Convert Particle to interface
This commit is contained in:
parent
d2284d5c47
commit
6277787e0a
@ -27,7 +27,7 @@ use pocketmine\block\Block;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
||||
|
||||
class DestroyBlockParticle extends Particle{
|
||||
class DestroyBlockParticle implements Particle{
|
||||
|
||||
/** @var int */
|
||||
protected $data;
|
||||
|
@ -36,7 +36,7 @@ use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
|
||||
use pocketmine\utils\UUID;
|
||||
use function str_repeat;
|
||||
|
||||
class FloatingTextParticle extends Particle{
|
||||
class FloatingTextParticle implements Particle{
|
||||
//TODO: HACK!
|
||||
|
||||
protected $text;
|
||||
|
@ -26,7 +26,7 @@ namespace pocketmine\level\particle;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
||||
|
||||
class GenericParticle extends Particle{
|
||||
class GenericParticle implements Particle{
|
||||
/** @var int */
|
||||
protected $id;
|
||||
/** @var int */
|
||||
|
@ -26,7 +26,7 @@ namespace pocketmine\level\particle;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
||||
|
||||
class MobSpawnParticle extends Particle{
|
||||
class MobSpawnParticle implements Particle{
|
||||
/** @var int */
|
||||
protected $width;
|
||||
/** @var int */
|
||||
|
@ -26,13 +26,13 @@ namespace pocketmine\level\particle;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\ClientboundPacket;
|
||||
|
||||
abstract class Particle{
|
||||
interface Particle{
|
||||
|
||||
/**
|
||||
* @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