Added Difficulty API.

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-10-03 01:25:39 -04:00
parent 903b75184d
commit 3ea8302a86
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
*/