Added World.Environment enum, changed createWorld to use it

This commit is contained in:
Dinnerbone
2011-02-06 20:47:39 +00:00
parent 672bb9cd60
commit 914774e0d9
2 changed files with 31 additions and 2 deletions

View File

@@ -258,4 +258,26 @@ public interface World {
* @see setTime
*/
public void setFullTime(long time);
/**
* Gets the environment type of this world
*
* @return This worlds Environment type
*/
public Environment getEnvironment();
/**
* Represents various map environment types that a world may be
*/
public enum Environment {
/**
* Represents the "normal"/"surface world" map
*/
NORMAL,
/**
* Represents a nether based map
*/
NETHER
}
}