BiomesOPlenty/common/biomesoplenty/world/WorldProviderBOPhell.java

40 lines
1.1 KiB
Java
Raw Normal View History

2013-05-18 15:06:30 +00:00
package biomesoplenty.world;
import net.minecraft.world.WorldProviderHell;
2013-05-18 15:06:30 +00:00
import net.minecraft.world.chunk.IChunkProvider;
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
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()
{
if (Biomes.netherGarden.isPresent() || Biomes.netherDesert.isPresent() || Biomes.netherLava.isPresent() || Biomes.netherBone.isPresent())
2013-05-18 15:06:30 +00:00
{
this.worldChunkMgr = new WorldChunkManagerBOPhell(worldObj);
2013-05-18 15:06:30 +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()
{
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);
}
}
return new ChunkProviderBOPhell(this.worldObj, this.worldObj.getSeed());
2013-05-18 16:12:18 +00:00
}
2013-05-18 15:06:30 +00:00
}