Class FlatTerrainGenerator

  • All Implemented Interfaces:
    ChunkGenerator

    public class FlatTerrainGenerator
    extends java.lang.Object
    implements ChunkGenerator
    A ChunkGenerator implementation that creates a flat looking terrain at a given y value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Chunk generate​(com.simsilica.mathd.Vec3i location)
      Generates the chunk for the given chunk location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FlatTerrainGenerator

        public FlatTerrainGenerator​(int y,
                                    Block block)
    • Method Detail

      • 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