Class TheMoon


public final class TheMoon extends SimpleAlienWorld
The moon
  • Constructor Details

  • Method Details

    • getPopulators

      protected void getPopulators(@Nonnull List<org.bukkit.generator.BlockPopulator> populators)
      Description copied from class: AlienWorld
      Add all chunk populators to this list
      Specified by:
      getPopulators in class AlienWorld
    • generateMaterial

      @Nonnull protected org.bukkit.Material generateMaterial(@Nonnull Random random, int x, int y, int z, int top)
      Specified by:
      generateMaterial in class SimpleAlienWorld
    • getTop

      @Nonnull protected it.unimi.dsi.fastutil.objects.ObjectIntPair<org.bukkit.Material> getTop()
      Description copied from class: SimpleAlienWorld
      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
      Overrides:
      getTop in class SimpleAlienWorld
      Returns:
      an ObjectIntPair of the top block material and the number of top blocks, or null if there is none
    • getBiome

      @Nonnull protected org.bukkit.block.Biome getBiome()
      Specified by:
      getBiome in class SimpleAlienWorld
    • getAverageHeight

      protected int getAverageHeight()
      Description copied from class: SimpleAlienWorld
      Average block height of the world, similar to sea level
      Overrides:
      getAverageHeight in class SimpleAlienWorld
    • getCraterSettings

      @Nonnull protected SimpleAlienWorld.CraterSettings getCraterSettings()
      Description copied from class: SimpleAlienWorld
      Gets the settings used for crater generation, or null if there are no craters
      Overrides:
      getCraterSettings in class SimpleAlienWorld
      Returns:
      the settings used for crater generation, or null if there are no craters