2013-05-18 15:06:30 +00:00
|
|
|
package biomesoplenty.world;
|
|
|
|
|
2013-05-31 11:42:57 +00:00
|
|
|
import net.minecraft.world.WorldProviderHell;
|
2013-05-18 15:06:30 +00:00
|
|
|
import net.minecraft.world.chunk.IChunkProvider;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.api.Biomes;
|
2013-05-18 15:06:30 +00:00
|
|
|
|
2013-05-31 11:42:57 +00:00
|
|
|
public class WorldProviderBOPhell extends WorldProviderHell
|
2013-05-18 15:06:30 +00:00
|
|
|
{
|
2013-05-31 11:42:57 +00:00
|
|
|
public void registerWorldChunkManager()
|
|
|
|
{
|
2013-05-23 20:22:58 +00:00
|
|
|
if (Biomes.netherGarden.isPresent() || Biomes.netherDesert.isPresent() || Biomes.netherLava.isPresent() || Biomes.netherBone.isPresent())
|
2013-05-18 15:06:30 +00:00
|
|
|
{
|
2013-05-31 11:42:57 +00:00
|
|
|
this.worldChunkMgr = new WorldChunkManagerBOPhell(worldObj);
|
2013-05-18 15:06:30 +00:00
|
|
|
}
|
2013-05-31 11:42:57 +00:00
|
|
|
this.isHellWorld = true;
|
|
|
|
this.hasNoSky = true;
|
|
|
|
this.dimensionId = -1;
|
|
|
|
}
|
2013-05-18 15:06:30 +00:00
|
|
|
|
2013-05-18 16:12:18 +00:00
|
|
|
@Override
|
|
|
|
public IChunkProvider createChunkGenerator()
|
|
|
|
{
|
2013-05-31 11:42:57 +00:00
|
|
|
return new ChunkProviderBOPhell(this.worldObj, this.worldObj.getSeed());
|
2013-05-18 16:12:18 +00:00
|
|
|
}
|
2013-05-18 15:06:30 +00:00
|
|
|
}
|