mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
add LevelEventPacket::standardParticle() sugar
This commit is contained in:
@@ -129,6 +129,10 @@ class LevelEventPacket extends DataPacket implements ClientboundPacket{
|
||||
return $pk;
|
||||
}
|
||||
|
||||
public static function standardParticle(int $particleId, int $data, Vector3 $pos) : self{
|
||||
return self::create(self::EVENT_ADD_PARTICLE_MASK | $particleId, $data, $pos);
|
||||
}
|
||||
|
||||
protected function decodePayload() : void{
|
||||
$this->evid = $this->getVarInt();
|
||||
$this->position = $this->getVector3();
|
||||
|
Reference in New Issue
Block a user