package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.

// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode 

public class WorldProviderHell extends WorldProvider {

	public WorldProviderHell() {
	}

	public void registerWorldChunkManager() {
		worldChunkMgr = new WorldChunkManagerHell(MobSpawnerBase.hell, 1.0D, 0.0D);
		field_4220_c = true;
		isHellWorld = true;
		field_6478_e = true;
		worldType = -1;
	}

	public Vec3D func_4096_a(float f, float f1) {
		return Vec3D.createVector(0.20000000298023224D, 0.029999999329447746D, 0.029999999329447746D);
	}

	protected void generateLightBrightnessTable() {
		float f = 0.1F;
		for (int i = 0; i <= 15; i++) {
			float f1 = 1.0F - (float) i / 15F;
			lightBrightnessTable[i] = ((1.0F - f1) / (f1 * 3F + 1.0F)) * (1.0F - f) + f;
		}

	}

	public IChunkProvider getChunkProvider() {
		return new ChunkProviderHell(worldObj, worldObj.func_22138_q());
	}

	public boolean canCoordinateBeSpawn(int i, int j) {
		int k = worldObj.getFirstUncoveredBlock(i, j);
		if (k == Block.bedrock.blockID) {
			return false;
		}
		if (k == 0) {
			return false;
		}
		return Block.opaqueCubeLookup[k];
	}

	public float calculateCelestialAngle(long l, float f) {
		return 0.5F;
	}

	public boolean canRespawnHere() {
		return false;
	}
}
