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

getFlowDecay() protected méthode

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