pocketmine\level\Level::getId PHP Method

getId() final public method

Returns the unique level identifier
final public getId ( ) : integer
return integer
    public final function getId() : int
    {
        return $this->levelId;
    }

Usage Example

 public function blockZone(Vector3 $a, Vector3 $b, Level $level)
 {
     if (!isset($this->activeZones[$level->getId()])) {
         $this->activeZones[$level->getId()] = [];
     }
     $id = count($this->activeZones[$level->getId()]);
     $this->activeZones[$level->getId()][$id] = [$a, $b];
     $this->clearZone($level, $id);
     return $id;
 }
All Usage Examples Of pocketmine\level\Level::getId
Level