类 DungeonHooks
java.lang.Object
net.minecraftforge.common.DungeonHooks
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static float
addDungeonMob
(EntityType<?> type, int rarity) Adds a mob to the possible list of creatures the spawner will create.static EntityType
<?> Gets a random mob name from the list.static int
removeDungeonMob
(EntityType<?> name) Will completely remove a Mob from the dungeon spawn list.
-
字段详细资料
-
dungeonMobs
-
-
构造器详细资料
-
DungeonHooks
public DungeonHooks()
-
-
方法详细资料
-
addDungeonMob
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.- 参数:
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.- 返回:
- The new rarity of the monster,
-
removeDungeonMob
Will completely remove a Mob from the dungeon spawn list.- 参数:
name
- The name of the mob to remove- 返回:
- The rarity of the removed mob, prior to being removed.
-
getRandomDungeonMob
Gets a random mob name from the list.- 参数:
rand
- World generation random number generator- 返回:
- The mob name
-