net.morbz.minecraft.level
Class FlatGenerator

java.lang.Object
  extended by net.morbz.minecraft.level.FlatGenerator
All Implemented Interfaces:
IGenerator

public class FlatGenerator
extends java.lang.Object
implements IGenerator

This class can be used to define the default block layers of the part of the world that will be created by the internal Minecraft generator. This results in a flat world where the blocks of each Y-coordinate are the same. It is recommended to combine the FlatGenerator with the DefaultLayers to get a consistent world.

Author:
MorbZ

Constructor Summary
FlatGenerator()
          Creates a new instance.
FlatGenerator(DefaultLayers layers)
          Creates a new instance.
 
Method Summary
 java.lang.String getGeneratorName()
          Returns the generator name as it is used in the level file.
 java.lang.String getGeneratorOptions()
          Returns the generator options as they are used in the level file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatGenerator

public FlatGenerator()
Creates a new instance. The default flat generator will be used without custom layers.


FlatGenerator

public FlatGenerator(DefaultLayers layers)
Creates a new instance. Uses the custom default layers for world generation.

Parameters:
layers - The default layers. Can be 'null'
Method Detail

getGeneratorName

public java.lang.String getGeneratorName()
Returns the generator name as it is used in the level file.

Specified by:
getGeneratorName in interface IGenerator
Returns:
The generator name

getGeneratorOptions

public java.lang.String getGeneratorOptions()
Returns the generator options as they are used in the level file.

Specified by:
getGeneratorOptions in interface IGenerator
Returns:
The generator options. Can be 'null'