本文整理了Java中net.minecraftforge.common.config.Configuration.getConfigFile()
方法的一些代码示例,展示了Configuration.getConfigFile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getConfigFile()
方法的具体详情如下:
包路径:net.minecraftforge.common.config.Configuration
类名称:Configuration
方法名:getConfigFile
暂无
代码示例来源:origin: OpenMods/OpenModsLib
public File getConfigFile() {
return config.getConfigFile();
}
代码示例来源:origin: TeamLapen/Vampirism
/**
* Firstly clears the config file, then replaces the old configuration by a new one so the new (emtpy) file is loaded and then loads the default values and saves them.
*/
public void resetAndReload() {
reset(configuration.getConfigFile());
configuration = new Configuration(configuration.getConfigFile());
loadBalance();
}
代码示例来源:origin: Alex-the-666/Ice_and_Fire
public GuiIceAndFireConfig(GuiScreen parent) {
super(parent, new ConfigElement(IceAndFire.config.getCategory("all")).getChildElements(), IceAndFire.MODID, false, false, "Ice And Fire Confg");
titleLine2 = IceAndFire.config.getConfigFile().getAbsolutePath();
}
代码示例来源:origin: TeamLapen/Vampirism
} catch (Exception e) {
VampLib.log.e(TAG, "Cant set " + this.name + " values", e);
throw new Error("Please check your " + configuration.getConfigFile().getAbsolutePath() + " config file");
内容来源于网络,如有侵权,请联系作者删除!