mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
Add configuration options for water_ambient spawning
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user