private function checkForHarden()
{
if ($this instanceof Lava) {
$colliding = false;
for ($side = 0; $side <= 5 and !$colliding; ++$side) {
$colliding = $this->getSide($side) instanceof Water;
}
if ($colliding) {
if ($this->getDamage() === 0) {
$this->getLevel()->setBlock($this, Block::get(Item::OBSIDIAN), true);
} elseif ($this->getDamage() <= 4) {
$this->getLevel()->setBlock($this, Block::get(Item::COBBLESTONE), true);
}
$this->triggerLavaMixEffects($this);
}
}
}