YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.common.DungeonHooks Class Reference

Classes

class  DungeonMob
 

Static Public Member Functions

static float addDungeonMob (String name, int rarity)
 
static int removeDungeonMob (String name)
 
static String getRandomDungeonMob (Random rand)
 

Member Function Documentation

static float net.minecraftforge.common.DungeonHooks.addDungeonMob ( String  name,
int  rarity 
)
static

Adds a mob to the possible list of creatures the spawner will create. If the mob is already in the spawn list, the rarity will be added to the existing one, causing the mob to be more common.

Parameters
nameThe name of the monster, use the same name used when registering the entity.
rarityThe 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.
Returns
The new rarity of the monster,
static String net.minecraftforge.common.DungeonHooks.getRandomDungeonMob ( Random  rand)
static

Gets a random mob name from the list.

Parameters
randWorld generation random number generator
Returns
The mob name
static int net.minecraftforge.common.DungeonHooks.removeDungeonMob ( String  name)
static

Will completely remove a Mob from the dungeon spawn list.

Parameters
nameThe name of the mob to remove
Returns
The rarity of the removed mob, prior to being removed.

The documentation for this class was generated from the following file: