Dungeon API

With this API modders can add their own items to chests in dungeons, and mobs to generated spawners.
This mod was continued as ShockAhPI.
To modders:
Just include the class files in Build Path of your mod, and then you can use these methods:
Code
DungeonAPI.AddMob(String mob) - adds mob to spawners with 10 "chances" to spawn (default: Skeleton,Spider - 10; Zombie - 20)
DungeonAPI.AddMob(String mob, int chances) - adds mob to spawners with custom number of chances
DungeonAPI.RemoveMob(String mob) - removes mob entirely from generated spawners
DungeonAPI.RemoveAllMobs() - removes all the mobs from generated spawners (will spawn Pig without any mobs on the list)
DungeonAPI.AddItem(DungeonAPI.Loot loot) - adds new loot type to chests in dungeons, with 100 "chances" to be put in chest (default value for original items)
DungeonAPI.AddItem(DungeonAPI.Loot loot, int chances) - adds new loot type to chests in dungeons with custom number of chances
DungeonAPI.AddWarrantedItem(DungeonAPI.Loot loot) - adds item that is warranted to be in a chest (unless there are too many warranted items)
DungeonAPI.RemoveItem(int ID) - removes item from loot list
DungeonAPI.RemoveAllItems() - removes all items from loot list
new DungeonAPI.Loot(ii itemStack) - new loot type with min and max amount set to amount in stack
new DungeonAPI.Loot(ii itemStack, int min, int max) - new loot type with custom min
Category:Mods