Class spawnlist

java.lang.Object
  extended by spawnlist

public final class spawnlist
extends java.lang.Object

Provides utility methods for modifying the minecraft mob spawn list. The goal is to make an API for mods to use that want to modify the spawn list without interfering with each other or even conflicting. There are two kinds of methods, each in a Monster and a Creatures variety:

add(Monsters|Creatures)ToSpawnList
Adds mobs to the given biomes' spawnlist
remove(Monsters|Creatures)FromSpawnList
Remove mobs from the given biomes' spawnlist
Accepts standard minecraft biome names as the biome arguments: Also, the following convenience collective biomes are allowed, which are shortcuts for collections of the above biomes: Mob arguments are variadic and can be either the mob's registered name or the actual mob class, or mixtures of the two. For example:
 spawnlist.addMonstersToSpawnList("Surface biomes", "Giant", "Ghast", "PigZombie", "Slime");
 spawnlist.addMonstersToSpawnList("Surface biomes", ef.class);
 spawnlist.removeMonstersFromSpawnList("Surface biomes", "Creeper", "Zombie", "Spider", "Skeleton");
 spawnlist.removeCreaturesFromSpawnList(new String[]{"Desert biomes", "Rainforest"}, "Cow");
 spawnlist.addCreaturesToSpawnList("Hell biomes", "Chicken");
 spawnlist.addCreaturesToSpawnList("Surface biomes", fc.class);
 spawnlist.addMonstersToSpawnList(new String[]{"Tundra", "Seasonal Forest"}, Wolf.class);
 

Version:
1.0

Method Summary
static void addCreaturesToSpawnList(java.lang.String[] biomeNames, java.lang.Object... mobs)
          Add neutral mobs to the spawn list of the given biomes (many biomes version)
static void addCreaturesToSpawnList(java.lang.String biomeName, java.lang.Object... mobs)
          Add neutral mobs to the spawn list of the given biome (one biome version)
static void addMonstersToSpawnList(java.lang.String[] biomeNames, java.lang.Object... mobs)
          Add hostile mobs to the spawn list of the given biomes (many biomes version)
static void addMonstersToSpawnList(java.lang.String biomeName, java.lang.Object... mobs)
          Add hostile mobs to the spawn list of the given biome (one biome version)
static void removeCreaturesFromSpawnList(java.lang.String[] biomeNames, java.lang.Object... mobs)
          Remove neutral mobs to the spawn list of the given biome (many biomes version)
static void removeCreaturesFromSpawnList(java.lang.String biomeName, java.lang.Object... mobs)
          Remove neutral mobs to the spawn list of the given biome (one biome version)
static void removeMonstersFromSpawnList(java.lang.String[] biomeNames, java.lang.Object... mobs)
          Remove hostile mobs to the spawn list of the given biome (many biomes version)
static void removeMonstersFromSpawnList(java.lang.String biomeName, java.lang.Object... mobs)
          Remove hostile mobs to the spawn list of the given biome (one biome version)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addCreaturesToSpawnList

public static void addCreaturesToSpawnList(java.lang.String biomeName,
                                           java.lang.Object... mobs)
Add neutral mobs to the spawn list of the given biome (one biome version)


addCreaturesToSpawnList

public static void addCreaturesToSpawnList(java.lang.String[] biomeNames,
                                           java.lang.Object... mobs)
Add neutral mobs to the spawn list of the given biomes (many biomes version)


addMonstersToSpawnList

public static void addMonstersToSpawnList(java.lang.String biomeName,
                                          java.lang.Object... mobs)
Add hostile mobs to the spawn list of the given biome (one biome version)


addMonstersToSpawnList

public static void addMonstersToSpawnList(java.lang.String[] biomeNames,
                                          java.lang.Object... mobs)
Add hostile mobs to the spawn list of the given biomes (many biomes version)


removeCreaturesFromSpawnList

public static void removeCreaturesFromSpawnList(java.lang.String biomeName,
                                                java.lang.Object... mobs)
Remove neutral mobs to the spawn list of the given biome (one biome version)


removeCreaturesFromSpawnList

public static void removeCreaturesFromSpawnList(java.lang.String[] biomeNames,
                                                java.lang.Object... mobs)
Remove neutral mobs to the spawn list of the given biome (many biomes version)


removeMonstersFromSpawnList

public static void removeMonstersFromSpawnList(java.lang.String biomeName,
                                               java.lang.Object... mobs)
Remove hostile mobs to the spawn list of the given biome (one biome version)


removeMonstersFromSpawnList

public static void removeMonstersFromSpawnList(java.lang.String[] biomeNames,
                                               java.lang.Object... mobs)
Remove hostile mobs to the spawn list of the given biome (many biomes version)