Add configuration options for water_ambient spawning

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2020-06-26 18:39:34 +10:00
parent 3ed2628aa9
commit 4cf580fde0
3 changed files with 124 additions and 0 deletions

View File

@@ -314,6 +314,26 @@ public interface Server extends PluginMessageRecipient {
*/
public int getTicksPerWaterSpawns();
/**
* Gets the default ticks per water ambient mob spawns value.
* <p>
* <b>Example Usage:</b>
* <ul>
* <li>A value of 1 will mean the server will attempt to spawn water ambient mobs
* every tick.
* <li>A value of 400 will mean the server will attempt to spawn water ambient mobs
* every 400th tick.
* <li>A value below 0 will be reset back to Minecraft's default.
* </ul>
* <p>
* <b>Note:</b> If set to 0, ambient mobs spawning will be disabled.
* <p>
* Minecraft default: 1.
*
* @return the default ticks per water ambient mobs spawn value
*/
public int getTicksPerWaterAmbientSpawns();
/**
* Gets the default ticks per ambient mob spawns value.
* <p>
@@ -920,6 +940,14 @@ public interface Server extends PluginMessageRecipient {
*/
int getWaterAnimalSpawnLimit();
/**
* Gets user-specified limit for number of water ambient mobs that can spawn
* in a chunk.
*
* @return the water ambient spawn limit
*/
int getWaterAmbientSpawnLimit();
/**
* Gets user-specified limit for number of ambient mobs that can spawn in
* a chunk.