Пример #1
0
 /**
  * @param Vector3 $pos
  *
  * @return bool
  */
 public function isFullBlock(Vector3 $pos)
 {
     if ($pos instanceof Block) {
         $bb = $pos->getBoundingBox();
     } else {
         $bb = $this->getBlock($pos)->getBoundingBox();
     }
     return $bb !== null and $bb->getAverageEdgeLength() >= 1;
 }