public function canCalc() { return $this->getLevel()->getServer()->redstoneEnabled; }
public function canCalcTurn() { if (!parent::canCalc()) { return false; } if ($this->getLevel()->getServer()->getTick() != $this->getLastUpdateTime()) { return true; } return $this->canScheduleUpdate() ? Level::BLOCK_UPDATE_SCHEDULED : false; }