canCalc() public method

public canCalc ( )
示例#1
0
 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;
 }
示例#2
0
 public function canCalc()
 {
     if (!parent::canCalc()) {
         return false;
     }
     if ($this->getLevel()->getServer()->getTick() != $this->lastUpdateTime) {
         return true;
     }
     return false;
 }