Added world.getSeaLevel()

This commit is contained in:
Dinnerbone 2011-09-25 01:05:32 +01:00
parent 637ffd6f11
commit ef0834736a

View File

@ -686,6 +686,15 @@ public interface World {
*/ */
public int getMaxHeight(); public int getMaxHeight();
/**
* Gets the sea level for this world.
*
* This is often half of {@link #getMaxHeight()}
*
* @return Sea level
*/
public int getSeaLevel();
/** /**
* Gets whether the world's spawn area should be kept loaded into memory or not. * Gets whether the world's spawn area should be kept loaded into memory or not.
* *