Class WorldChunkManager

java.lang.Object
net.minecraft.src.WorldChunkManager
Direct Known Subclasses:
WorldChunkManagerHell

public class WorldChunkManager extends Object
  • Constructor Details

    • WorldChunkManager

      protected WorldChunkManager()
    • WorldChunkManager

      public WorldChunkManager(long par1, WorldType par3WorldType)
    • WorldChunkManager

      public WorldChunkManager(World par1World)
  • Method Details

    • getBiomesToSpawnIn

      public List getBiomesToSpawnIn()
      Gets the list of valid biomes for the player to spawn in.
    • getBiomeGenAt

      public BiomeGenBase getBiomeGenAt(int par1, int par2)
      Returns the BiomeGenBase related to the x, z position on the world.
    • getRainfall

      public float[] getRainfall(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5)
      Returns a list of rainfall values for the specified blocks. Args: listToReuse, x, z, width, length.
    • getTemperatureAtHeight

      public float getTemperatureAtHeight(float par1, int par2)
      Return an adjusted version of a given temperature based on the y height
    • getTemperatures

      public float[] getTemperatures(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5)
      Returns a list of temperatures to use for the specified blocks. Args: listToReuse, x, y, width, length
    • getBiomesForGeneration

      public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5)
      Returns an array of biomes for the location input.
    • loadBlockGeneratorData

      public BiomeGenBase[] loadBlockGeneratorData(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5)
      Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the WorldChunkManager Args: oldBiomeList, x, z, width, depth
    • getBiomeGenAt

      public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6)
      Return a list of biomes for the specified blocks. Args: listToReuse, x, y, width, length, cacheFlag (if false, don't check biomeCache to avoid infinite loop in BiomeCacheBlock)
    • areBiomesViable

      public boolean areBiomesViable(int par1, int par2, int par3, List par4List)
      checks given Chunk's Biomes against List of allowed ones
    • findBiomePosition

      public ChunkPosition findBiomePosition(int par1, int par2, int par3, List par4List, Random par5Random)
      Finds a valid position within a range, that is in one of the listed biomes. Searches {par1,par2} +-par3 blocks. Strongly favors positive y positions.
    • cleanupCache

      public void cleanupCache()
      Calls the WorldChunkManager's biomeCache.cleanupCache()
    • getDifficulty

      public Difficulty getDifficulty()