public class DungeonHooks
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DungeonHooks.DungeonMob |
Modifier and Type | Field and Description |
---|---|
private static java.util.ArrayList<DungeonHooks.DungeonMob> |
dungeonMobs |
Constructor and Description |
---|
DungeonHooks() |
Modifier and Type | Method and Description |
---|---|
static float |
addDungeonMob(ResourceLocation name,
int rarity)
Adds a mob to the possible list of creatures the spawner will create.
|
static ResourceLocation |
getRandomDungeonMob(java.util.Random rand)
Gets a random mob name from the list.
|
static int |
removeDungeonMob(ResourceLocation name)
Will completely remove a Mob from the dungeon spawn list.
|
private static java.util.ArrayList<DungeonHooks.DungeonMob> dungeonMobs
public static float addDungeonMob(ResourceLocation 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(ResourceLocation name)
name
- The name of the mob to removepublic static ResourceLocation getRandomDungeonMob(java.util.Random rand)
rand
- World generation random number generator