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-07-01 00:31:34 +00:00
|
|
|
import cpw.mods.fml.common.Loader;
|
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-07-01 00:31:34 +00:00
|
|
|
@Override
|
|
|
|
public void registerWorldChunkManager()
|
2013-05-31 11:42:57 +00:00
|
|
|
{
|
2013-10-27 23:20:07 +00:00
|
|
|
if (Biomes.netherGarden.isPresent() || Biomes.netherDesert.isPresent() || Biomes.netherLava.isPresent() || Biomes.netherBone.isPresent() || Biomes.netherBlood.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-06-01 04:27:17 +00:00
|
|
|
if (Loader.isModLoaded("Natura"))
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
return new ChunkProviderBOPNaturaHell(this.worldObj, this.worldObj.getSeed());
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
System.out.println("[BiomesOPlenty] There was an error while integrating Natura with Biomes O' Plenty!");
|
|
|
|
e.printStackTrace(System.err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|