Added Difficulty API.

This commit is contained in:
EvilSeph
2011-10-03 01:25:39 -04:00
parent ed6b4882d1
commit ab1591b013
3 changed files with 79 additions and 4 deletions

View File

@@ -725,6 +725,20 @@ public interface World {
*/
public void setAutoSave(boolean value);
/**
* Sets the Difficulty of the world.
*
* @param difficulty the new difficulty you want to set the world to
*/
public void setDifficulty(Difficulty difficulty);
/**
* Gets the Difficulty of the world.
*
* @return The difficulty of the world.
*/
public Difficulty getDifficulty();
/**
* Represents various map environment types that a world may be
*/