mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
remove GenericParticle, work on isolating network crap in particles
This commit is contained in:
@ -23,10 +23,19 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\world\particle;
|
||||
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelEventPacket;
|
||||
use pocketmine\network\mcpe\protocol\types\ParticleIds;
|
||||
|
||||
class SmokeParticle extends GenericParticle{
|
||||
class SmokeParticle implements Particle{
|
||||
/** @var int */
|
||||
private $scale;
|
||||
|
||||
public function __construct(int $scale = 0){
|
||||
parent::__construct(ParticleIds::SMOKE, $scale);
|
||||
$this->scale = $scale;
|
||||
}
|
||||
|
||||
public function encode(Vector3 $pos){
|
||||
return LevelEventPacket::standardParticle(ParticleIds::SMOKE, $this->scale, $pos);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user