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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSpawn(org.bukkit.World world, int x, int z) protected voidcreateWorldOctaves(org.bukkit.World world, Map<String, org.bukkit.util.noise.OctaveGenerator> octaves) Populates a Map with theOctaveGeneratorinstances for the world.org.bukkit.generator.ChunkGenerator.ChunkDatagenerateChunkData(org.bukkit.World world, Random random, int chunkX, int chunkZ, org.bukkit.generator.ChunkGenerator.BiomeGrid biomes) voidgenerateTerrainColumn(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.LocationgetFixedSpawnLocation(org.bukkit.World world, Random random) Methods inherited from class net.glowstone.generator.GlowChunkGenerator
getDefaultPopulators, getWorldOctavesMethods 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:
generateChunkDatain classorg.bukkit.generator.ChunkGenerator
-
canSpawn
public boolean canSpawn(org.bukkit.World world, int x, int z) - Overrides:
canSpawnin classGlowChunkGenerator
-
getFixedSpawnLocation
- Overrides:
getFixedSpawnLocationin classGlowChunkGenerator
-
createWorldOctaves
protected void createWorldOctaves(org.bukkit.World world, Map<String, org.bukkit.util.noise.OctaveGenerator> octaves) Description copied from class:GlowChunkGeneratorPopulates a Map with theOctaveGeneratorinstances for the world.- Overrides:
createWorldOctavesin 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
-