public abstract class GenLayer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
baseSeed
base seed to the LCG prng provided via the constructor
|
protected GenLayer |
parent
parent GenLayer that was provided via the constructor
|
Constructor and Description |
---|
GenLayer(long par1) |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
compareBiomesById(int p_151616_0_,
int p_151616_1_)
returns true if the biomeIDs are equal, or returns the result of the comparison as per BiomeGenBase.isEqualTo
|
abstract int[] |
getInts(int var1,
int var2,
int var3,
int var4)
Returns a list of integer values generated by this layer.
|
static byte |
getModdedBiomeSize(WorldType worldType,
byte original) |
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 static boolean |
isBiomeOceanic(int p_151618_0_)
returns true if the biomeId is one of the various ocean biomes.
|
protected int |
nextInt(int par1)
returns a LCG pseudo random number from [0, x).
|
protected int |
selectModeOrRandom(int p_151617_1_,
int p_151617_2_,
int p_151617_3_,
int p_151617_4_)
returns the most frequently occurring number of the set, or a random number from those provided
|
protected int |
selectRandom(int... p_151619_1_)
selects a random integer from a set of provided integers
|
protected GenLayer parent
protected long baseSeed
public static GenLayer[] initializeAllBiomeGenerators(long par0, WorldType par2WorldType)
public void initWorldGenSeed(long par1)
public void initChunkSeed(long par1, long par3)
protected int nextInt(int par1)
public abstract int[] getInts(int var1, int var2, int var3, int var4)
protected static boolean compareBiomesById(int p_151616_0_, int p_151616_1_)
protected static boolean isBiomeOceanic(int p_151618_0_)
protected int selectRandom(int... p_151619_1_)
protected int selectModeOrRandom(int p_151617_1_, int p_151617_2_, int p_151617_3_, int p_151617_4_)
public static byte getModdedBiomeSize(WorldType worldType, byte original)