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

getEffectiveFlowDecay() protected méthode

protected getEffectiveFlowDecay ( Vector3 $pos )
$pos pocketmine\math\Vector3
    protected function getEffectiveFlowDecay(Vector3 $pos)
    {
        if (!$pos instanceof Block) {
            $pos = $this->getLevel()->getBlock($pos);
        }
        if ($pos->getId() !== $this->getId()) {
            return -1;
        }
        $decay = $pos->getDamage();
        if ($decay >= 8) {
            $decay = 0;
        }
        return $decay;
    }