Possible to find out if a chunk has been generated or not?

Discussion in 'Bukkit Discussion' started by Zomis, Aug 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Zomis

    Is it somehow possible to find out, using the Bukkit API, whether or not a chunk has been generated?

    I have read this documentation http://jd.bukkit.org/apidocs/org/bukkit/Chunk.html and I know that isLoaded() exists, but I am quite sure that isLoaded is not the same as isGenerated. Let's say for example that a player teleports himself 10000 blocks away. Sooner or later, I think the server unloads the old chunks - but that does not mean that the chunk is not generated.

    So, is it possible somehow to find out if a chunk has been generated?

    If not, is it likely to exist in an upcoming version of Bukkit?
     
  2. Offline

    deltahat

    A chunk must be generated before it can be loaded, so if isLoaded() == true, the chunk must be generated.

    Are you trying to determine if a chunk that is not currently loaded has been previously generated? If so, what will you use this for? Maybe there is another way?
     
  3. Offline

    Zomis

    I found out the other way, the other way is to read the regions in the Anvil Format and decode it. I basically want to find out which parts of the world that has been generated/discovered.
     
Thread Status:
Not open for further replies.

Share This Page