pocketmine\block\Liquid::triggerLavaMixEffects PHP Méthode

triggerLavaMixEffects() protected méthode

Creates fizzing sound and smoke. Used when lava flows over block or mixes with water.
protected triggerLavaMixEffects ( Vector3 $pos )
$pos pocketmine\math\Vector3
    protected function triggerLavaMixEffects(Vector3 $pos)
    {
        $this->getLevel()->addSound(new FizzSound($pos->add(0.5, 0.5, 0.5), 2.5 + mt_rand(0, 1000) / 1000 * 0.8));
        for ($i = 0; $i < 8; ++$i) {
            $this->getLevel()->addParticle(new SmokeParticle($pos->add(mt_rand(0, 80) / 100, 0.5, mt_rand(0, 80) / 100)));
        }
    }