SPIGOT-5496: API to create and manipulate hardcore worlds
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user