public class BiomeVariationMapLayer extends MapLayer
| Constructor and Description |
|---|
BiomeVariationMapLayer(long seed,
MapLayer belowLayer)
Creates an instance with no variation layer.
|
BiomeVariationMapLayer(long seed,
MapLayer belowLayer,
MapLayer variationLayer)
Creates an instance with the given variation layer.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
generateRandomValues(int x,
int z,
int sizeX,
int sizeZ)
Generates a rectangle, replacing all the positive values in the previous layer with random
values from 2 to 31 while leaving zero and negative values unchanged.
|
int[] |
generateValues(int x,
int z,
int sizeX,
int sizeZ) |
int[] |
mergeValues(int x,
int z,
int sizeX,
int sizeZ)
Generates a rectangle using the previous layer and the variation layer.
|
initialize, nextInt, setCoordsSeedpublic BiomeVariationMapLayer(long seed,
MapLayer belowLayer)
seed - the PRNG seedbelowLayer - the layer below this onepublic BiomeVariationMapLayer(long seed,
MapLayer belowLayer,
MapLayer variationLayer)
seed - the PRNG seedbelowLayer - the layer below this onevariationLayer - the variation layer, or null to use no variation layerpublic int[] generateValues(int x,
int z,
int sizeX,
int sizeZ)
generateValues in class MapLayerpublic int[] generateRandomValues(int x,
int z,
int sizeX,
int sizeZ)
x - the lowest x coordinatez - the lowest z coordinatesizeX - the x coordinate rangesizeZ - the z coordinate rangepublic int[] mergeValues(int x,
int z,
int sizeX,
int sizeZ)
x - the lowest x coordinatez - the lowest z coordinatesizeX - the x coordinate rangesizeZ - the z coordinate rangeCopyright © 2021. All rights reserved.