public class DungeonHooks
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DungeonHooks.DungeonMob |
Constructor and Description |
---|
DungeonHooks() |
Modifier and Type | Method and Description |
---|---|
static float |
addDungeonMob(java.lang.String name,
int rarity)
Adds a mob to the possible list of creatures the spawner will create.
|
static java.lang.String |
getRandomDungeonMob(java.util.Random rand)
Gets a random mob name from the list.
|
static int |
removeDungeonMob(java.lang.String name)
Will completely remove a Mob from the dungeon spawn list.
|
public static float addDungeonMob(java.lang.String name, int rarity)
name
- The name of the monster, use the same name used when registering the entity.rarity
- The rarity of selecting this mob over others. Must be greater then 0.
Vanilla Minecraft has the following mobs:
Spider 100
Skeleton 100
Zombie 200
Meaning, Zombies are twice as common as spiders or skeletons.public static int removeDungeonMob(java.lang.String name)
name
- The name of the mob to removepublic static java.lang.String getRandomDungeonMob(java.util.Random rand)
rand
- World generation random number generator