Guest User

Untitled

a guest
Apr 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.31 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. public class WorldProviderElemental extends WorldProvider
  4. {
  5.  
  6.     public WorldProviderElemental()
  7.     {
  8.     }
  9.  
  10.     public void registerWorldChunkManager()
  11.     {
  12.         worldChunkMgr = new WorldChunkManagerElemental(BiomeGenBase.elemental, 1.0F, 0.0F);
  13.         isNether = false;
  14.         isHellWorld = true;
  15.         hasNoSky = true;
  16.         worldType = -2;
  17.     }
  18.  
  19.     protected void generateLightBrightnessTable()
  20.     {
  21.         float f = 0.1F;
  22.         for(int i = 0; i <= 15; i++)
  23.         {
  24.             float f1 = 1.0F - (float)i / 15F;
  25.             lightBrightnessTable[i] = ((1.0F - f1) / (f1 * 3F + 1.0F)) * (1.0F - f) + f;
  26.         }
  27.  
  28.     }
  29.  
  30.     public IChunkProvider getChunkProvider()
  31.     {
  32.         return new ChunkProviderElemental(worldObj, worldObj.getWorldSeed());
  33.     }
  34.  
  35.     public boolean canCoordinateBeSpawn(int i, int j)
  36.     {
  37.         int k = worldObj.getFirstUncoveredBlock(i, j);
  38.         if(k == Block.bedrock.blockID)
  39.         {
  40.             return false;
  41.         }
  42.         if(k == 0)
  43.         {
  44.             return false;
  45.         }
  46.         return Block.opaqueCubeLookup[k];
  47.     }
  48.  
  49.     public float calculateCelestialAngle(long l, float f)
  50.     {
  51.         return 0.5F;
  52.     }
  53.  
  54.     public boolean canRespawnHere()
  55.     {
  56.         return false;
  57.     }
  58. }
Add Comment
Please, Sign In to add comment