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(EntityType<?> type,
int rarity)
Adds a mob to the possible list of creatures the spawner will create.
|
static EntityType<?> |
getRandomDungeonMob(java.util.Random rand)
Gets a random mob name from the list.
|
static int |
removeDungeonMob(EntityType<?> name)
Will completely remove a Mob from the dungeon spawn list.
|
private static java.util.ArrayList<DungeonHooks.DungeonMob> dungeonMobs
public static float addDungeonMob(EntityType<?> type, int rarity)
type
- Monster typerarity
- 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(EntityType<?> name)
name
- The name of the mob to removepublic static EntityType<?> getRandomDungeonMob(java.util.Random rand)
rand
- World generation random number generator