Package net.glowstone.generator
Class GlowChunkGenerator
java.lang.Object
org.bukkit.generator.ChunkGenerator
net.glowstone.generator.GlowChunkGenerator
- Direct Known Subclasses:
NetherGenerator
,OverworldGenerator
,SuperflatGenerator
,TheEndGenerator
public abstract class GlowChunkGenerator
extends org.bukkit.generator.ChunkGenerator
Base chunk generator class.
-
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
-
Constructor Summary
ModifierConstructorDescriptionprotected
GlowChunkGenerator
(org.bukkit.generator.BlockPopulator... args) -
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.final List<org.bukkit.generator.BlockPopulator>
getDefaultPopulators
(org.bukkit.World world) org.bukkit.Location
getFixedSpawnLocation
(org.bukkit.World world, Random random) getWorldOctaves
(org.bukkit.World world) Returns theOctaveGenerator
instances for the world, which are either newly created or retrieved from the cache.Methods inherited from class org.bukkit.generator.ChunkGenerator
createChunkData, createVanillaChunkData, generateChunkData, isParallelCapable, shouldGenerateCaves, shouldGenerateDecorations, shouldGenerateMobs, shouldGenerateStructures
-
Field Details
-
WORLD_DEPTH
protected static final int WORLD_DEPTH- See Also:
-
-
Constructor Details
-
GlowChunkGenerator
protected GlowChunkGenerator(org.bukkit.generator.BlockPopulator... args)
-
-
Method Details
-
createWorldOctaves
protected void createWorldOctaves(org.bukkit.World world, Map<String, org.bukkit.util.noise.OctaveGenerator> octaves) Populates a Map with theOctaveGenerator
instances for the world.- Parameters:
world
- The world to create OctaveGenerators foroctaves
- The map to put the OctaveGenerators into
-
getWorldOctaves
protected final Map<String,org.bukkit.util.noise.OctaveGenerator> getWorldOctaves(org.bukkit.World world) Returns theOctaveGenerator
instances for the world, which are either newly created or retrieved from the cache.- Parameters:
world
- The world to look for in the cache- Returns:
- A map of
OctaveGenerator
s created bycreateWorldOctaves(World, Map)
-
getDefaultPopulators
- Overrides:
getDefaultPopulators
in classorg.bukkit.generator.ChunkGenerator
-
canSpawn
public boolean canSpawn(org.bukkit.World world, int x, int z) - Overrides:
canSpawn
in classorg.bukkit.generator.ChunkGenerator
-
getFixedSpawnLocation
- Overrides:
getFixedSpawnLocation
in classorg.bukkit.generator.ChunkGenerator
-