pocketmine\level\sound\SpellSound::__construct PHP Метод

__construct() публичный Метод

public __construct ( Vector3 $pos, $r, $g, $b )
$pos pocketmine\math\Vector3
    public function __construct(Vector3 $pos, $r = 0, $g = 0, $b = 0)
    {
        parent::__construct($pos->x, $pos->y, $pos->z);
        $this->id = (int) LevelEventPacket::EVENT_SOUND_SPELL;
        $this->color = ($r << 16 | $g << 8 | $b) & 0xffffff;
    }