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
AChunkGenerator
implementation 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 Chunk
generate(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:ChunkGenerator
Generates the chunk for the given chunk location.- Specified by:
generate
in interfaceChunkGenerator
- Parameters:
location
- of the chunk- Returns:
- chunk
-
-