Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class WorldProviderElemental extends WorldProvider
- {
- public WorldProviderElemental()
- {
- }
- public void registerWorldChunkManager()
- {
- worldChunkMgr = new WorldChunkManagerElemental(BiomeGenBase.elemental, 1.0F, 0.0F);
- isNether = false;
- isHellWorld = true;
- hasNoSky = true;
- worldType = -2;
- }
- 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 ChunkProviderElemental(worldObj, worldObj.getWorldSeed());
- }
- 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;
- }
- }
Add Comment
Please, Sign In to add comment