@EventHandler
public void postInit(FMLPostInitializationEvent event) {
fairySpawner = new Spawner();
// TODO: move these thresholds into config file
final int maxNum = 18;
final int freqNum = 8;
fairySpawner.setMaxAnimals(maxNum);
fairySpawner.AddCustomSpawn(EntityFairy.class, freqNum, EnumCreatureType.creature);
FMLCommonHandler.instance().bus().register(fairySpawner);
// TODO: register entity localization
LOGGER.debug("Spawner is a modified version of CustomSpawner, created by DrZhark.");
proxy.postInit();
}
FairyFactions.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:FairyFactions
作者:
评论列表
文章目录