net.morbz.minecraft.level
Enum SimpleGenerator

java.lang.Object
  extended by java.lang.Enum<SimpleGenerator>
      extended by net.morbz.minecraft.level.SimpleGenerator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SimpleGenerator>, IGenerator

public enum SimpleGenerator
extends java.lang.Enum<SimpleGenerator>
implements IGenerator

The class for world generators that don't have generator options.

Author:
MorbZ

Enum Constant Summary
AMPLIFIED
          Amplified generator
DEFAULT
          Default generator
LARGE_BIOMES
          Large biomes generator
 
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.
static SimpleGenerator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SimpleGenerator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final SimpleGenerator DEFAULT
Default generator


AMPLIFIED

public static final SimpleGenerator AMPLIFIED
Amplified generator


LARGE_BIOMES

public static final SimpleGenerator LARGE_BIOMES
Large biomes generator

Method Detail

values

public static SimpleGenerator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SimpleGenerator c : SimpleGenerator.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SimpleGenerator valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

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'