Class GenLayer

java.lang.Object
net.minecraft.src.GenLayer
Direct Known Subclasses:
GenLayerAddIsland, GenLayerAddMushroomIsland, GenLayerAddSnow, GenLayerBiome, GenLayerFuzzyZoom, GenLayerHills, GenLayerIsland, GenLayerRiver, GenLayerRiverInit, GenLayerRiverMix, GenLayerShore, GenLayerSmooth, GenLayerSwampRivers, GenLayerVoronoiZoom, GenLayerZoom

public abstract class GenLayer extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected GenLayer
    parent GenLayer that was provided via the constructor
  • Constructor Summary

    Constructors
    Constructor
    Description
    GenLayer(long par1)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract int[]
    getInts(int var1, int var2, int var3, int var4)
    Returns a list of integer values generated by this layer.
    void
    initChunkSeed(long par1, long par3)
    Initialize layer's current chunkSeed based on the local worldGenSeed and the (x,z) chunk coordinates.
    static GenLayer[]
    initializeAllBiomeGenerators(long par0, WorldType par2WorldType)
    the first array item is a linked list of the bioms, the second is the zoom function, the third is the same as the first.
    void
    initWorldGenSeed(long par1)
    Initialize layer's local worldGenSeed based on its own baseSeed and the world's global seed (passed in as an argument).
    protected int
    nextInt(int par1)
    returns a LCG pseudo random number from [0, x).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • parent

      protected GenLayer parent
      parent GenLayer that was provided via the constructor
  • Constructor Details

    • GenLayer

      public GenLayer(long par1)
  • Method Details

    • initializeAllBiomeGenerators

      public static GenLayer[] initializeAllBiomeGenerators(long par0, WorldType par2WorldType)
      the first array item is a linked list of the bioms, the second is the zoom function, the third is the same as the first.
    • initWorldGenSeed

      public void initWorldGenSeed(long par1)
      Initialize layer's local worldGenSeed based on its own baseSeed and the world's global seed (passed in as an argument).
    • initChunkSeed

      public void initChunkSeed(long par1, long par3)
      Initialize layer's current chunkSeed based on the local worldGenSeed and the (x,z) chunk coordinates.
    • nextInt

      protected int nextInt(int par1)
      returns a LCG pseudo random number from [0, x). Args: int x
    • getInts

      public abstract int[] getInts(int var1, int var2, int var3, int var4)
      Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall amounts, or biomeList[] indices based on the particular GenLayer subclass.