org.bukkit
Enum WorldType

java.lang.Object
  extended by java.lang.Enum<WorldType>
      extended by org.bukkit.WorldType
All Implemented Interfaces:
Serializable, Comparable<WorldType>

public enum WorldType
extends Enum<WorldType>

Represents various types of worlds that may exist


Enum Constant Summary
FLAT
           
LARGE_BIOMES
           
NORMAL
           
VERSION_1_1
           
 
Method Summary
static WorldType getByName(String name)
          Gets a Worldtype by its name
 String getName()
          Gets the name of this WorldType
static WorldType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WorldType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NORMAL

public static final WorldType NORMAL

FLAT

public static final WorldType FLAT

VERSION_1_1

public static final WorldType VERSION_1_1

LARGE_BIOMES

public static final WorldType LARGE_BIOMES
Method Detail

values

public static WorldType[] 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 (WorldType c : WorldType.values())
    System.out.println(c);

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

valueOf

public static WorldType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()
Gets the name of this WorldType

Returns:
Name of this type

getByName

public static WorldType getByName(String name)
Gets a Worldtype by its name

Parameters:
name - Name of the WorldType to get
Returns:
Requested WorldType, or null if not found


Copyright © 2013. All Rights Reserved.