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