setMonsterSpawnLimit

public abstract void setMonsterSpawnLimit(int limit)

Sets the limit for number of monsters that can spawn in getClassById chunk in this world

Note: If set to getClassById negative number the world will use the server-wide spawn limit instead.

Parameters

limit

the new mob limit