mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 12:43:52 -07:00
Implemented per world setting to keep the spawn in memory or not.
By: Rigby <rigby@onarandombox.com>
This commit is contained in:
@@ -686,6 +686,20 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public int getMaxHeight();
|
public int getMaxHeight();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether the world's spawn area should be kept loaded into memory or not.
|
||||||
|
*
|
||||||
|
* @return true if the world's spawn area will be kept loaded into memory.
|
||||||
|
*/
|
||||||
|
public boolean getKeepSpawnInMemory();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the world's spawn area should be kept loaded into memory or not.
|
||||||
|
*
|
||||||
|
* @param keepLoaded if true then the world's spawn area will be kept loaded into memory.
|
||||||
|
*/
|
||||||
|
public void setKeepSpawnInMemory(boolean keepLoaded);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents various map environment types that a world may be
|
* Represents various map environment types that a world may be
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user