diff options
author | Rigby <rigby@onarandombox.com> | 2011-07-27 00:24:38 +0100 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-08-05 14:37:56 -0400 |
commit | fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf (patch) | |
tree | 43beefe6b47faa0edf937a5be1cf219a7fce2f89 /src | |
parent | 30f4a7d66dc8477b133a437f72c6c65e2384228f (diff) | |
download | bukkit-fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf.tar bukkit-fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf.tar.gz bukkit-fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf.tar.lz bukkit-fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf.tar.xz bukkit-fd2b5f3ec59027f939cd0159137dea4bfc5fb2bf.zip |
Implemented per world setting to keep the spawn in memory or not.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/World.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index b8330493..3c416de1 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -687,6 +687,20 @@ public interface World { 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 */ public enum Environment { |