当前位置: 首页>>代码示例>>Java>>正文


Java GuiConfig.getAbridgedConfigPath方法代码示例

本文整理汇总了Java中net.minecraftforge.fml.client.config.GuiConfig.getAbridgedConfigPath方法的典型用法代码示例。如果您正苦于以下问题:Java GuiConfig.getAbridgedConfigPath方法的具体用法?Java GuiConfig.getAbridgedConfigPath怎么用?Java GuiConfig.getAbridgedConfigPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraftforge.fml.client.config.GuiConfig的用法示例。


在下文中一共展示了GuiConfig.getAbridgedConfigPath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildChildScreen

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
@Override
protected GuiScreen buildChildScreen()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();

    list.add(new DummyCategoryElement("forgeChunkLoadingModCfg", "forge.configgui.ctgy.forgeChunkLoadingModConfig",
            ModOverridesEntry.class));
    list.addAll((new ConfigElement(ForgeChunkManager.getDefaultsCategory())).getChildElements());

    // This GuiConfig object specifies the configID of the object and as such will force-save when it is closed. The parent
    // GuiConfig object's propertyList will also be refreshed to reflect the changes.
    return new GuiConfig(this.owningScreen, list, this.owningScreen.modID, "chunkLoader",
            this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
            this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
            GuiConfig.getAbridgedConfigPath(ForgeChunkManager.getConfig().toString()),
            I18n.format("forge.configgui.ctgy.forgeChunkLoadingConfig"));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:18,代码来源:ForgeGuiFactory.java

示例2: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen guiScreen) {
    super(
        guiScreen,
        RSAddons.INSTANCE.config.getConfigElements(),
        RSAddons.ID,
        false,
        false,
        GuiConfig.getAbridgedConfigPath(RSAddons.INSTANCE.config.getConfig().toString())
    );
}
 
开发者ID:raoulvdberge,项目名称:refinedstorageaddons,代码行数:11,代码来源:ModGuiConfig.java

示例3: ConfigGui

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ConfigGui(GuiScreen parentScreen)
{

	super(parentScreen,
			ConfigOptions.getConfigElements(),
			References.ModID, false, false,
			GuiConfig.getAbridgedConfigPath(
					ConfigOptions.config.toString()));
}
 
开发者ID:Bartz24,项目名称:UsefulNullifiers,代码行数:10,代码来源:ConfigGuiFactory.java

示例4: GuiPrefab

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public GuiPrefab(GuiScreen parent)
{
	super(parent,
			new ConfigElement(Prefab.config.getCategory(ModConfiguration.OPTIONS)).getChildElements(),
			Prefab.MODID, null, false, false, GuiConfig.getAbridgedConfigPath(Prefab.config.toString()), null);

	ConfigCategory category = Prefab.config.getCategory(ModConfiguration.OPTIONS);
	String abridgedConfigPath = GuiConfig.getAbridgedConfigPath(Prefab.config.toString());

	this.ReplaceIntegerEntries();
}
 
开发者ID:Brian-Wuest,项目名称:MC-Prefab,代码行数:12,代码来源:GuiPrefab.java

示例5: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen guiScreen) {

		super(guiScreen, new ConfigElement(ConfigurationHandler.configuration.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(), Reference.MOD_ID, false, // world
																																										// restart
		false, // MC restart
		GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));

	}
 
开发者ID:TechStack,项目名称:TechStack-s-HeavyMachineryMod,代码行数:9,代码来源:ModGuiConfig.java

示例6: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen guiScreen)
{
	super(guiScreen,
			new ConfigElement(ConfigHandler.config.getCategory(net.minecraftforge.common.config.Configuration.CATEGORY_GENERAL)).getChildElements(),
			Reference.MOD_ID,
			false,
			false,
			GuiConfig.getAbridgedConfigPath(ConfigHandler.config.toString())
	);
}
 
开发者ID:CAD97,项目名称:SpawnerCraft2,代码行数:11,代码来源:ModGuiConfig.java

示例7: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen guiScreen)
{
    super(guiScreen,
            new ConfigElement(ConfigHandler.configuration.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
            Reference.MOD_ID,
            false,
            false,
            GuiConfig.getAbridgedConfigPath(ConfigHandler.configuration.toString()));
}
 
开发者ID:untamemadman,项目名称:Vanilla-Tweaks,代码行数:10,代码来源:ModGuiConfig.java

示例8: buildChildScreen

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
	return new GuiConfig(owningScreen,
			new ConfigElement(EasyEditors.instance.config.getCategory("colors")).getChildElements(),
			owningScreen.modID, false, false,
			GuiConfig.getAbridgedConfigPath(EasyEditors.instance.config.toString()),
			Translate.GUI_EASYEDITORSCONFIG_COLORTITLELINE2);
}
 
开发者ID:Earthcomputer,项目名称:Easy-Editors,代码行数:9,代码来源:GuiFactory.java

示例9: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen parentScreen) {
	super(parentScreen,
			new ConfigElement(ConfigurationHandler.configuration.getCategory(Configuration.CATEGORY_GENERAL))
					.getChildElements(),
			Reference.MOD_ID, false, false,
			GuiConfig.getAbridgedConfigPath(ConfigurationHandler.configuration.toString()));
}
 
开发者ID:Nincraft,项目名称:NincraftLib,代码行数:8,代码来源:ModGuiConfig.java

示例10: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig (GuiScreen parentScreen)
{
    super(parentScreen,
            new ConfigElement(ConfigurationHandler.instance().getConfigurationCategory()).getChildElements(),
            Reference.MOD_ID,
            false,
            false,
            GuiConfig.getAbridgedConfigPath(ConfigurationHandler.instance().toString()));
}
 
开发者ID:hancin,项目名称:Fullscreen-Windowed-Minecraft,代码行数:10,代码来源:ModGuiConfig.java

示例11: buildChildScreen

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
@Override
protected GuiScreen buildChildScreen()
{
	return new GuiConfig(this.owningScreen,
			(new ConfigElement(ConfigTalismans.config
					.getCategory(Configuration.CATEGORY_GENERAL)))
					.getChildElements(), this.owningScreen.modID,
			Configuration.CATEGORY_GENERAL,
			this.configElement.requiresWorldRestart()
					|| this.owningScreen.allRequireWorldRestart,
			this.configElement.requiresMcRestart()
					|| this.owningScreen.allRequireMcRestart,
			GuiConfig.getAbridgedConfigPath(ConfigTalismans.config
					.toString()));
}
 
开发者ID:TeamC4,项目名称:Talismans2,代码行数:16,代码来源:TalismanConfigGUI.java

示例12: ConfigGui

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ConfigGui(GuiScreen parent) {
    super(parent,
        new ConfigElement(ModAutoFish.configFile.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
        ModAutoFish.MODID, false, false, "AutoFish Forge Mod Options"
        );
    this.titleLine2 = GuiConfig.getAbridgedConfigPath(ModAutoFish.configFile.toString());
}
 
开发者ID:freneticfeline,项目名称:mod_autofish,代码行数:8,代码来源:ConfigGui.java

示例13: ModGuiConfig

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public ModGuiConfig(GuiScreen guiScreen){
    //noinspection unchecked
    super(guiScreen,
            new ConfigElement(ConfigurationHandler.config.getCategory(ConfigReference.GENERAL)).getChildElements(),
            GeneralReference.MOD_ID,
            false,
            false,
            GuiConfig.getAbridgedConfigPath(ConfigurationHandler.config.toString())
    );
}
 
开发者ID:Mattpenguin,项目名称:MagicaSolaris,代码行数:11,代码来源:ModGuiConfig.java

示例14: MinemaConfigGui

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
public MinemaConfigGui(GuiScreen parentScreen) {
    super(parentScreen,
        getConfigElements(Minema.instance.getConfigForge()),
        Minema.ID, false, false, GuiConfig.getAbridgedConfigPath(
            Minema.instance.getConfigForge().toString()
        )
    );
}
 
开发者ID:ata4,项目名称:minema,代码行数:9,代码来源:MinemaConfigGui.java

示例15: createConfigGui

import net.minecraftforge.fml.client.config.GuiConfig; //导入方法依赖的package包/类
@Override
public GuiScreen createConfigGui(GuiScreen gs) {
    Configuration config = Mineshot.instance.getConfigForge();
    
    // map config elements to their categories, except for CATEGORY_GENERAL
    List<IConfigElement> configElems = config.getCategoryNames().stream()
        .filter(catName -> !catName.equals(Configuration.CATEGORY_GENERAL))
        .map(catName -> new ConfigElement(config.getCategory(catName)))
        .collect(Collectors.toList());

    // add props in CATEGORY_GENERAL directly to the root of the list
    if (config.hasCategory(Configuration.CATEGORY_GENERAL)) {
        ConfigCategory catGeneral = config.getCategory(Configuration.CATEGORY_GENERAL);
        List<Property> props = catGeneral.getOrderedValues();            
        configElems.addAll(props.stream()
            .map(prop -> new ConfigElement(prop))
            .collect(Collectors.toList())
        );
    }
    
    String title = GuiConfig.getAbridgedConfigPath(Mineshot.instance.getConfigForge().toString());
    
    return new GuiConfig(gs, configElems, Mineshot.ID, false, false, title) {
        @Override
        public void onGuiClosed() {
            super.onGuiClosed();
            config.save();
        }
    };
}
 
开发者ID:ata4,项目名称:mineshot,代码行数:31,代码来源:MineshotConfigGuiFactory.java


注:本文中的net.minecraftforge.fml.client.config.GuiConfig.getAbridgedConfigPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。