def containsChunk(self, cx, cz):
        '''
        Checks if the specified chunk exists/has been generated
        
        :param cx: The X coordinate of the chunk
        :type cx: int
        :param cz: The Z coordinate of the chunk
        :type cz: int
        :return: True if the chunk exists/has been generated, False otherwise
        :rtype: bool
        '''
        if self._allChunks is not None:
            return (cx, cz) in self._allChunks
        if (cx, cz) in self._loadedChunkData:
            return True

        return self.worldFolder.containsChunk(cx, cz)

        Checks if the specified chunk exists/has been generated
        
        :param cx: The X coordinate of the chunk
        :type cx: int
        :param cz: The Z coordinate of the chunk
        :type cz: int
        :return: True if the chunk exists/has been generated, False otherwise
        :rtype: bool
        
pymclevel/infiniteworld.py