def METHOD_NAME(
    self,
    tile_mappings: Sequence[Sequence[TilemapEntryProtocol]],
    contains_null_chunk=False,
    correct_tile_ids=True,
):
    """
    Replace the tile mappings of the specified layer.
    If contains_null_tile is False, the null chunk is added to the list, at the beginning.
    If correct_tile_ids is True, then the tile id of tile_mappings is also increased by one. Use this,
    if you previously used import_tiles with contains_null_tile=False
    """
    if correct_tile_ids:
        for chunk in tile_mappings:
            for entry in chunk:
                entry.idx += 1
    if not contains_null_chunk:
        tile_mappings = [[TilemapEntry.from_int(u16(0)) for _ in range(0, 9)]] + tile_mappings  # type: ignore
    self.chunks = tile_mappings
    self.re_fill_chunks()