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;
}