當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。