Class MapLayer
java.lang.Object
net.glowstone.generator.biomegrid.MapLayer
- Direct Known Subclasses:
BiomeEdgeMapLayer
,BiomeMapLayer
,BiomeThinEdgeMapLayer
,BiomeVariationMapLayer
,ConstantBiomeMapLayer
,DeepOceanMapLayer
,ErosionMapLayer
,NoiseMapLayer
,RarePlainsMapLayer
,RiverMapLayer
,ShoreMapLayer
,SmoothMapLayer
,WhittakerMapLayer
,ZoomMapLayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int[]
generateValues
(int x, int z, int sizeX, int sizeZ) static MapLayer[]
initialize
(long seed, org.bukkit.World.Environment environment, org.bukkit.WorldType worldType) Creates the instances for the given map.int
nextInt
(int max) void
setCoordsSeed
(int x, int z)
-
Constructor Details
-
MapLayer
public MapLayer(long seed)
-
-
Method Details
-
initialize
public static MapLayer[] initialize(long seed, org.bukkit.World.Environment environment, org.bukkit.WorldType worldType) Creates the instances for the given map.- Parameters:
seed
- the world seedenvironment
- the type of dimensionworldType
- the world generator- Returns:
- an array of all map layers this dimension needs
-
setCoordsSeed
public void setCoordsSeed(int x, int z) -
nextInt
public int nextInt(int max) -
generateValues
public abstract int[] generateValues(int x, int z, int sizeX, int sizeZ)
-