setAnimalSpawnLimit

public abstract void setAnimalSpawnLimit(int limit)

Sets the limit for number of animals 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