BiomesOPlenty/src/minecraft/biomesoplenty/world/WorldProviderBOPhell.java

25 lines
723 B
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-05-18 15:06:30 +00:00
public class WorldProviderBOPhell extends WorldProviderHell
2013-05-18 15:06:30 +00:00
{
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()
{
return new ChunkProviderBOPhell(this.worldObj, this.worldObj.getSeed());
2013-05-18 16:12:18 +00:00
}
2013-05-18 15:06:30 +00:00
}