Class FlatTerrainGenerator

java.lang.Object
com.rvandoosselaer.blocks.FlatTerrainGenerator
All Implemented Interfaces:
ChunkGenerator

public class FlatTerrainGenerator extends Object implements ChunkGenerator
A ChunkGenerator implementation that creates a flat looking terrain at a given y value.
  • Constructor Details

    • FlatTerrainGenerator

      public FlatTerrainGenerator(int y, Block block)
  • Method Details

    • generate

      public Chunk generate(com.simsilica.mathd.Vec3i location)
      Description copied from interface: ChunkGenerator
      Generates the chunk for the given chunk location.
      Specified by:
      generate in interface ChunkGenerator
      Parameters:
      location - of the chunk
      Returns:
      chunk