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 p_i2125_1_) |
| 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 p_75904_1_,
int p_75904_2_,
int p_75904_3_,
int p_75904_4_)
Returns a list of integer values generated by this layer.
|
static byte |
getModdedBiomeSize(WorldType worldType,
byte original) |
void |
initChunkSeed(long p_75903_1_,
long p_75903_3_)
Initialize layer's current chunkSeed based on the local worldGenSeed and the (x,z) chunk coordinates.
|
static GenLayer[] |
initializeAllBiomeGenerators(long p_75901_0_,
WorldType p_75901_2_)
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 p_75905_1_)
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 p_75902_1_)
returns a LCG pseudo random number from [0, x).
|
protected long |
nextLong(long par1) |
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 p_75901_0_, WorldType p_75901_2_)
public void initWorldGenSeed(long p_75905_1_)
public void initChunkSeed(long p_75903_1_,
long p_75903_3_)
protected int nextInt(int p_75902_1_)
public abstract int[] getInts(int p_75904_1_,
int p_75904_2_,
int p_75904_3_,
int p_75904_4_)
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_)
protected long nextLong(long par1)
public static byte getModdedBiomeSize(WorldType worldType, byte original)