pocketmine\tile\Tile::getId PHP Method

getId() public method

public getId ( )
    public function getId()
    {
        return $this->id;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param Tile $tile
  *
  * @throws LevelException
  */
 public function removeTile(Tile $tile)
 {
     if ($tile->getLevel() !== $this) {
         throw new LevelException("Invalid Tile level");
     }
     unset($this->tiles[$tile->getId()]);
     unset($this->updateTiles[$tile->getId()]);
     $this->clearChunkCache($tile->getX() >> 4, $tile->getZ() >> 4);
 }
All Usage Examples Of pocketmine\tile\Tile::getId