public function tickRate() : int { if ($this instanceof Water) { return 5; } elseif ($this instanceof Lava) { return 30; } return 0; }