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

    Fields
    Modifier and Type
    Field
    Description
    protected static final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    GlowChunkGenerator(org.bukkit.generator.BlockPopulator... args)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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 the OctaveGenerator 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)
     
    protected final Map<String,org.bukkit.util.noise.OctaveGenerator>
    getWorldOctaves(org.bukkit.World world)
    Returns the OctaveGenerator 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 the OctaveGenerator instances for the world.
      Parameters:
      world - The world to create OctaveGenerators for
      octaves - The map to put the OctaveGenerators into
    • getWorldOctaves

      protected final Map<String,org.bukkit.util.noise.OctaveGenerator> getWorldOctaves(org.bukkit.World world)
      Returns the OctaveGenerator 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 OctaveGenerators created by createWorldOctaves(World, Map)
    • getDefaultPopulators

      public final List<org.bukkit.generator.BlockPopulator> getDefaultPopulators(org.bukkit.World world)
      Overrides:
      getDefaultPopulators in class org.bukkit.generator.ChunkGenerator
    • canSpawn

      public boolean canSpawn(org.bukkit.World world, int x, int z)
      Overrides:
      canSpawn in class org.bukkit.generator.ChunkGenerator
    • getFixedSpawnLocation

      public org.bukkit.Location getFixedSpawnLocation(org.bukkit.World world, Random random)
      Overrides:
      getFixedSpawnLocation in class org.bukkit.generator.ChunkGenerator