在我的minecraft forge mod中,我试图使我的实体自然生成,但似乎不起作用。
以下是我的代码链接:https://pastebin.com/6qlc2mma
@订阅biomeloading上的public static void(biomeloadingevent e){
if ((e.getCategory() != Biome.Category.OCEAN) && (e.getCategory() != Biome.Category.NETHER) && (e.getCategory() != Biome.Category.THEEND)) {
e.getSpawns().withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners
(EntityRegistry.BOAR.get(), 70, 7, 9));
e.getSpawns().withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners
(EntityRegistry.BULL.get(), 90, 1, 2));
e.getSpawns().withSpawner(EntityClassification.CREATURE, new MobSpawnInfo.Spawners
(EntityRegistry.ELEPHANT.get(), 60, 3, 5));
}
}
应该引用那个类吗?如果是,参数是什么?
暂无答案!
目前还没有任何答案,快来回答吧!