remove GenericParticle, work on isolating network crap in particles

This commit is contained in:
Dylan K. Taylor
2019-08-19 19:26:26 +01:00
parent 4dfa335ae7
commit 8557c93f04
30 changed files with 220 additions and 121 deletions

View File

@ -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);
}
}