canCalc() 공개 메소드

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