本文整理了Java中net.minecraftforge.common.config.Configuration.toString()
方法的一些代码示例,展示了Configuration.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.toString()
方法的具体详情如下:
包路径:net.minecraftforge.common.config.Configuration
类名称:Configuration
方法名:toString
暂无
代码示例来源:origin: Vazkii/Botania
public GuiBotaniaConfig(GuiScreen parentScreen) {
super(parentScreen, new ConfigElement(ConfigHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigHandler.config.toString()));
}
代码示例来源:origin: CoFH/CoFHCore
@Override
public String toString() {
return modConfiguration.toString();
}
代码示例来源:origin: Azanor/Baubles
public BaublesGuiFactory() {
super(Baubles.MODID, GuiConfig.getAbridgedConfigPath(Config.config.toString()));
}
代码示例来源:origin: lorddusk/HQM
public HQMConfigGui(GuiScreen parentScreen) {
super(parentScreen,
ModConfig.getConfigElements(),
ModInformation.ID,
false,
false,
GuiConfig.getAbridgedConfigPath(ModConfig.config.toString()));
}
}
代码示例来源:origin: MrCrayfish/MrCrayfishFurnitureMod
public GuiFurnitureConfig(GuiScreen parent)
{
super(parent, getConfigElements(), "cfm", false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.config.toString()));
}
代码示例来源:origin: Vazkii/Quark
public GuiConfigCategory(GuiScreen parentScreen, String baseCategory) {
super(parentScreen, getAllElements(baseCategory), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ModuleLoader.config.toString()));
}
代码示例来源:origin: Ellpeck/ActuallyAdditions
public GuiConfiguration(GuiScreen parentScreen){
super(parentScreen, getConfigElements(), ActuallyAdditions.MODID, false, false, GuiConfig.getAbridgedConfigPath(ConfigurationHandler.config.toString()));
}
代码示例来源:origin: vadis365/TheErebus
public ConfigGUI(GuiScreen parent) {
super(parent, getElements(), Reference.MOD_ID, Reference.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigHandler.INSTANCE.config.toString()));
}
代码示例来源:origin: raoulvdberge/refinedstorage
public ModGuiConfig(GuiScreen guiScreen) {
super(
guiScreen,
RS.INSTANCE.config.getConfigElements(),
RS.ID,
false,
false,
GuiConfig.getAbridgedConfigPath(RS.INSTANCE.config.getConfig().toString())
);
}
}
代码示例来源:origin: PenguinSquad/Harvest-Festival
public GuiHFConfig(GuiScreen parentScreen) {
super(parentScreen, getConfigElements(), MODID, false, true, GuiConfig.getAbridgedConfigPath(ConfigHelper.getConfig().toString()));
}
代码示例来源:origin: Vazkii/Psi
public GuiPsiConfig(GuiScreen parentScreen) {
super(parentScreen, new ConfigElement(ConfigHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), LibMisc.MOD_ID, false, false, GuiConfig.getAbridgedConfigPath(ConfigHandler.config.toString()));
}
代码示例来源:origin: TheGreyGhost/MinecraftByExample
@Override
protected GuiScreen buildChildScreen()
{
Configuration configuration = MBEConfiguration.getConfig();
ConfigElement cat_general = new ConfigElement(configuration.getCategory(MBEConfiguration.CATEGORY_NAME_OTHER));
List<IConfigElement> propertiesOnThisScreen = cat_general.getChildElements();
String windowTitle = configuration.toString();
return new GuiConfig(this.owningScreen, propertiesOnThisScreen,
this.owningScreen.modID,
MBEConfiguration.CATEGORY_NAME_OTHER,
this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
windowTitle);
//this is a complicated object that specifies the category's gui screen, to better understand
// how it works, look into the definitions of the called functions and objects
}
}
代码示例来源:origin: TheGreyGhost/MinecraftByExample
@Override
protected GuiScreen buildChildScreen()
{
//The following GuiConfig object specifies the configID of the object and thus will force-save
// when closed.
//Parent GuiConfig object's entryList will also be refreshed to reflect the changes.
// --see GuiFactory of Forge for more info
//Additionally, Forge best practices say to put the path to the config file for the category as
// the title for the category config screen
Configuration configuration = MBEConfiguration.getConfig();
ConfigElement cat_general = new ConfigElement(configuration.getCategory(MBEConfiguration.CATEGORY_NAME_GENERAL));
List<IConfigElement> propertiesOnThisScreen = cat_general.getChildElements();
String windowTitle = configuration.toString();
return new GuiConfig(this.owningScreen, propertiesOnThisScreen,
this.owningScreen.modID,
MBEConfiguration.CATEGORY_NAME_GENERAL,
this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
windowTitle);
//this is a complicated object that specifies the category's gui screen, to better understand
// how it works, look into the definitions of the called functions and objects
}
}
内容来源于网络,如有侵权,请联系作者删除!