Class WorldGenOre

java.lang.Object
de.ellpeck.rockbottom.api.world.gen.WorldGenOre
All Implemented Interfaces:
IWorldGenerator

public abstract class WorldGenOre extends Object implements IWorldGenerator
  • Field Details

    • name

      protected final ResourceName name
    • oreRandom

      protected final Random oreRandom
    • oreSeed

      protected long oreSeed
  • Constructor Details

  • Method Details

    • initWorld

      public void initWorld(IWorld world)
      Specified by:
      initWorld in interface IWorldGenerator
    • shouldGenerate

      public boolean shouldGenerate(IWorld world, IChunk chunk)
      Specified by:
      shouldGenerate in interface IWorldGenerator
    • generate

      public void generate(IWorld world, IChunk chunk)
      Specified by:
      generate in interface IWorldGenerator
    • getHighestGridPos

      protected abstract int getHighestGridPos()
    • getLowestGridPos

      protected int getLowestGridPos()
    • getMaxAmount

      protected abstract int getMaxAmount()
    • getClusterRadiusX

      protected abstract int getClusterRadiusX()
    • getClusterRadiusY

      protected abstract int getClusterRadiusY()
    • getOreState

      protected abstract TileState getOreState()
    • getAllowedBiomes

      protected Set<Biome> getAllowedBiomes()
    • getAllwedTiles

      protected Set<TileState> getAllwedTiles()