mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
remove GenericParticle, work on isolating network crap in particles
This commit is contained in:
@ -23,10 +23,13 @@ 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 HappyVillagerParticle extends GenericParticle{
|
||||
public function __construct(){
|
||||
parent::__construct(ParticleIds::VILLAGER_HAPPY);
|
||||
class HappyVillagerParticle implements Particle{
|
||||
|
||||
public function encode(Vector3 $pos){
|
||||
return LevelEventPacket::standardParticle(ParticleIds::VILLAGER_HAPPY, 0, $pos);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user