Class SimpleAlienWorld

Direct Known Subclasses:
Io, Mars, TheMoon, Venus

public abstract class SimpleAlienWorld extends AlienWorld
A simple alien world
See Also:
  • Constructor Details

  • Method Details

    • generateChunk

      protected final void generateChunk(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Description copied from class: AlienWorld
      Generate a chunk
      Specified by:
      generateChunk in class AlienWorld
    • generateSurface

      protected final void generateSurface(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull Random random, @Nonnull org.bukkit.generator.WorldInfo world, int chunkX, int chunkZ)
      Description copied from class: AlienWorld
      Optionally, generate the surface step of the world
      Overrides:
      generateSurface in class AlienWorld
    • generateMaterial

      @Nonnull protected abstract org.bukkit.Material generateMaterial(@Nonnull Random random, int x, int y, int z, int top)
    • getTop

      @Nullable protected it.unimi.dsi.fastutil.objects.ObjectIntPair<org.bukkit.Material> getTop()
      Returns an ObjectIntPair of the top block material and the number of top blocks. Used for the
      invalid @link
      {@link #AlienWorld#generateSurface(ChunkGenerator.ChunkData, Random, WorldInfo, int, int)
      } method
      Returns:
      an ObjectIntPair of the top block material and the number of top blocks, or null if there is none
    • getCraterSettings

      @Nullable protected SimpleAlienWorld.CraterSettings getCraterSettings()
      Gets the settings used for crater generation, or null if there are no craters
      Returns:
      the settings used for crater generation, or null if there are no craters
    • getBiome

      @Nonnull protected abstract org.bukkit.block.Biome getBiome()
    • getBiomeProvider

      @Nonnull protected final org.bukkit.generator.BiomeProvider getBiomeProvider(@Nonnull org.bukkit.generator.WorldInfo info)
      Description copied from class: AlienWorld
      Get the BiomeProvider for this world
      Overrides:
      getBiomeProvider in class AlienWorld
      Returns:
      the BiomeProvider for this world, or null for vanilla biomes
    • generateMore

      protected void generateMore(@Nonnull org.bukkit.generator.ChunkGenerator.ChunkData chunk, @Nonnull org.bukkit.util.noise.SimplexOctaveGenerator generator, @Nonnull Random random, int realX, int realZ, int x, int z, int height)
      Generate additional things after the main materials and biomes have been generated
    • getAverageHeight

      protected int getAverageHeight()
      Average block height of the world, similar to sea level
    • getMaxDeviation

      protected int getMaxDeviation()
      Maximum y deviation
    • getOctaves

      protected int getOctaves()
      Octave generator octaves
    • getScale

      protected double getScale()
      Octave generator scale
    • getAmplitude

      protected double getAmplitude()
      Octave generator amplitude
    • getFrequency

      protected double getFrequency()
      Octave generator frequency
    • smoothenTerrain

      protected boolean smoothenTerrain()
      Square the noise before calculating height. This makes for smoother terrain.