Package com.rvandoosselaer.blocks
Class FlatTerrainGenerator
- java.lang.Object
-
- com.rvandoosselaer.blocks.FlatTerrainGenerator
-
- All Implemented Interfaces:
ChunkGenerator
public class FlatTerrainGenerator extends java.lang.Object implements ChunkGenerator
AChunkGeneratorimplementation that creates a flat looking terrain at a given y value.
-
-
Constructor Summary
Constructors Constructor Description FlatTerrainGenerator(int y, Block block)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Chunkgenerate(com.simsilica.mathd.Vec3i location)Generates the chunk for the given chunk location.
-
-
-
Constructor Detail
-
FlatTerrainGenerator
public FlatTerrainGenerator(int y, Block block)
-
-
Method Detail
-
generate
public Chunk generate(com.simsilica.mathd.Vec3i location)
Description copied from interface:ChunkGeneratorGenerates the chunk for the given chunk location.- Specified by:
generatein interfaceChunkGenerator- Parameters:
location- of the chunk- Returns:
- chunk
-
-