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 |
biomesEqualOrMesaPlateau(int biomeIDA,
int biomeIDB) |
abstract int[] |
getInts(int areaX,
int areaY,
int areaWidth,
int areaHeight)
Returns a list of integer values generated by this layer.
|
static int |
getModdedBiomeSize(WorldType worldType,
int 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 seed,
WorldType p_180781_2_,
ChunkProviderSettings p_180781_3_) |
void |
initWorldGenSeed(long seed)
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_)
Generates a pseudo random number between 0 and another integer.
|
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 seed, WorldType p_180781_2_, ChunkProviderSettings p_180781_3_)
public void initWorldGenSeed(long seed)
public void initChunkSeed(long p_75903_1_, long p_75903_3_)
protected int nextInt(int p_75902_1_)
public abstract int[] getInts(int areaX, int areaY, int areaWidth, int areaHeight)
protected static boolean biomesEqualOrMesaPlateau(int biomeIDA, int biomeIDB)
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 int getModdedBiomeSize(WorldType worldType, int original)