Package net.minecraft.src
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int[]getInts(int var1, int var2, int var3, int var4) Returns a list of integer values generated by this layer.voidinitChunkSeed(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.voidinitWorldGenSeed(long par1) Initialize layer's local worldGenSeed based on its own baseSeed and the world's global seed (passed in as an argument).protected intnextInt(int par1) returns a LCG pseudo random number from [0, x).
-
Field Details
-
parent
parent GenLayer that was provided via the constructor
-
-
Constructor Details
-
GenLayer
public GenLayer(long par1)
-
-
Method Details
-
initializeAllBiomeGenerators
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.
-