package xjon.jum.world.dimension; import xjon.jum.init.UselessBiomes; import xjon.jum.init.UselessDimensions; import xjon.jum.util.UselessConfiguration; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.util.math.Vec3d; import net.minecraft.world.DimensionType; import net.minecraft.world.WorldProvider; import net.minecraft.world.biome.BiomeProviderSingle; import net.minecraft.world.chunk.Chunk; import net.minecraft.world.chunk.IChunkGenerator; import net.minecraftforge.client.IRenderHandler; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class WorldProviderUseless extends WorldProvider { @Override public void createBiomeProvider() { this.biomeProvider = new BiomeProviderSingle(UselessBiomes.biomeUseless); this.setDimension(UselessConfiguration.uselessDimensionId); isHellWorld = false; } @Override public String getSaveFolder() { return "UselessDim"; } @Override public float getCloudHeight() { return 128.0F; } @Override @SideOnly(Side.CLIENT) public void setSkyRenderer(IRenderHandler skyRenderer) { super.setSkyRenderer(new UselessSkyRenderer()); } @Override @SideOnly(Side.CLIENT) public Vec3d getFogColor(float f1, float f2) { return new Vec3d(1.2, 1.2, 1); } @Override public IChunkGenerator createChunkGenerator() { return new ChunkProviderUseless(this.worldObj, this.worldObj.getSeed()); } @Override public boolean isSurfaceWorld() { return false; } @Override @SideOnly(Side.CLIENT) public boolean doesXZShowFog(int x, int z) { return true; } @Override @SideOnly(Side.CLIENT) public float calculateCelestialAngle(long var1, float var3) { return 0.1F; } @Override public boolean canRespawnHere() { return false; } @Override public int getRespawnDimension(EntityPlayerMP player) { return 0; } @Override public boolean canDoRainSnowIce(Chunk chunk) { return false; } @Override public String getWelcomeMessage() { return "You are wasting your time."; } @Override public DimensionType getDimensionType() { return UselessDimensions.DIMENSION_USELESS; } }