Package net.glowstone.generator
Class NetherGenerator
java.lang.Object
org.bukkit.generator.ChunkGenerator
net.glowstone.generator.GlowChunkGenerator
net.glowstone.generator.NetherGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.generator.ChunkGenerator
org.bukkit.generator.ChunkGenerator.BiomeGrid, org.bukkit.generator.ChunkGenerator.ChunkData
-
Field Summary
Fields inherited from class net.glowstone.generator.GlowChunkGenerator
WORLD_DEPTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSpawn
(org.bukkit.World world, int x, int z) protected void
createWorldOctaves
(org.bukkit.World world, Map<String, org.bukkit.util.noise.OctaveGenerator> octaves) Populates a Map with theOctaveGenerator
instances for the world.org.bukkit.generator.ChunkGenerator.ChunkData
generateChunkData
(org.bukkit.World world, Random random, int chunkX, int chunkZ, org.bukkit.generator.ChunkGenerator.BiomeGrid biomes) void
generateTerrainColumn
(org.bukkit.generator.ChunkGenerator.ChunkData chunkData, org.bukkit.World world, Random random, int x, int z, double surfaceNoise, double soulsandNoise, double gravelNoise) Generates a terrain column.org.bukkit.Location
getFixedSpawnLocation
(org.bukkit.World world, Random random) Methods inherited from class net.glowstone.generator.GlowChunkGenerator
getDefaultPopulators, getWorldOctaves
Methods inherited from class org.bukkit.generator.ChunkGenerator
createChunkData, createVanillaChunkData, isParallelCapable, shouldGenerateCaves, shouldGenerateDecorations, shouldGenerateMobs, shouldGenerateStructures
-
Constructor Details
-
NetherGenerator
public NetherGenerator()Creates a chunk generator for the Nether.
-
-
Method Details
-
generateChunkData
public org.bukkit.generator.ChunkGenerator.ChunkData generateChunkData(org.bukkit.World world, Random random, int chunkX, int chunkZ, org.bukkit.generator.ChunkGenerator.BiomeGrid biomes) - Overrides:
generateChunkData
in classorg.bukkit.generator.ChunkGenerator
-
canSpawn
public boolean canSpawn(org.bukkit.World world, int x, int z) - Overrides:
canSpawn
in classGlowChunkGenerator
-
getFixedSpawnLocation
- Overrides:
getFixedSpawnLocation
in classGlowChunkGenerator
-
createWorldOctaves
protected void createWorldOctaves(org.bukkit.World world, Map<String, org.bukkit.util.noise.OctaveGenerator> octaves) Description copied from class:GlowChunkGenerator
Populates a Map with theOctaveGenerator
instances for the world.- Overrides:
createWorldOctaves
in classGlowChunkGenerator
- Parameters:
world
- The world to create OctaveGenerators foroctaves
- The map to put the OctaveGenerators into
-
generateTerrainColumn
public void generateTerrainColumn(org.bukkit.generator.ChunkGenerator.ChunkData chunkData, org.bukkit.World world, Random random, int x, int z, double surfaceNoise, double soulsandNoise, double gravelNoise) Generates a terrain column.- Parameters:
chunkData
- the chunk in which to generateworld
- the worldrandom
- the PRNGx
- the column x coordinatez
- the column z coordinatesurfaceNoise
- amplitude of surface-height variationsoulsandNoise
- determines the chance of a soul sand patchgravelNoise
- determines the chance of a gravel patch
-