SPIGOT-5496: API to create and manipulate hardcore worlds

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2020-01-04 10:14:11 +11:00
parent 588b818f57
commit 281754ffbd
2 changed files with 47 additions and 0 deletions

View File

@@ -1464,6 +1464,24 @@ public interface World extends PluginMessageRecipient, Metadatable {
*/
public boolean canGenerateStructures();
/**
* Gets whether the world is hardcore or not.
*
* In a hardcore world the difficulty is locked to hard.
*
* @return hardcore status
*/
public boolean isHardcore();
/**
* Sets whether the world is hardcore or not.
*
* In a hardcore world the difficulty is locked to hard.
*
* @param hardcore Whether the world is hardcore
*/
public void setHardcore(boolean hardcore);
/**
* Gets the world's ticks per animal spawns value
* <p>