Add API for ambient mob spawn limit. Adds BUKKIT-2765
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
38f6b24c1c
commit
e4567e091b
3 changed files with 25 additions and 1 deletions
|
@ -648,6 +648,12 @@ public interface Server extends PluginMessageRecipient {
|
|||
*/
|
||||
int getWaterAnimalSpawnLimit();
|
||||
|
||||
/**
|
||||
* Gets user-specified limit for number of ambient mobs that can spawn in a chunk
|
||||
* @returns The ambient spawn limit
|
||||
*/
|
||||
int getAmbientSpawnLimit();
|
||||
|
||||
/**
|
||||
* Returns true if the current {@link Thread} is the server's primary thread
|
||||
*/
|
||||
|
@ -666,4 +672,4 @@ public interface Server extends PluginMessageRecipient {
|
|||
* @return The configured WarningState
|
||||
*/
|
||||
public WarningState getWarningState();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue