#Questions about BiomeProvider#getBiomes

1 messages · Page 1 of 1 (latest)

fallow prairie
#

Inside of BiomeProvider, there is a method: getBiomes(WorldInfo).

Why do you have to populate this, if the generator itself already returns the biomes at any given position? It seems to be used in org.bukkit.craftbukkit.generator.CustomWorldChunkManager#collectPossibleBiomes(), my best guess is that the vanilla generator uses this to know how to generate the biome map? Wouldn't that still be useless since you're not using the vanilla biome gen anyways?

last sequoia
#

Take this with a grain of salt 'cause I am in no way an expert on this.
I believe the game has to know every biome the world will contain so it can correctly save the biomes in the chunk. This is also the reason why you can not add biomes to an already existing world, it would load the incorrect biomes as the biome list is different.

#

And generating one chunk will not guarantee that each biome will exist obviously, so if a new biome got added the next chunk it would break.

fallow prairie
#

hm well then

#

I either modify the save format

#

or I just modify the save format