@EventHandler
public void postinit(FMLPostInitializationEvent event){
File file = new File("Diagnostics");
if(!file.exists())
file.mkdir();
try{
File potions = new File(file.getAbsolutePath() + File.separator + "Potions.txt");
if(!potions.exists())
potions.createNewFile();
PrintStream potionOut = new PrintStream(potions);
for(int i = 0; i < Potion.potionTypes.length; i++)
if(Potion.potionTypes[i] == null)
potionOut.println(i + ": null");
else
potionOut.println(i + ": " + Potion.potionTypes[i].getClass() + ", " + Potion.potionTypes[i].getName());
}
catch(Throwable th){
System.err.println("Potions error: " + th);
}
}
Lustro.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:Minegate
作者:
评论列表
文章目录