width = $width; $this->height = $height; } public function encode(Vector3 $pos) : array{ return [LevelEventPacket::create(LevelEvent::PARTICLE_SPAWN, ($this->width & 0xff) | (($this->height & 0xff) << 8), $pos)]; } }