• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DummyConfigElement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



DummyConfigElement类属于net.minecraftforge.fml.client.config包,在下文中一共展示了DummyConfigElement类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getConfigCategories

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigCategories()
{
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyConfigElement.DummyCategoryElement("Spawn Chances",
			"tm2.configgui.category.tmGeneral", (Class<? extends IConfigEntry>) TMGeneral.class));
	list.add(new DummyConfigElement.DummyCategoryElement(
			"Loot Spawn Chances", "tm2.configgui.category.tmLoot",
			(Class<? extends IConfigEntry>) TMLoot.class));
	list.add(new DummyConfigElement.DummyCategoryElement(
			"Configure Boolean Recipes",
			"tm2.configgui.category.tmRecipes", (Class<? extends IConfigEntry>) TMRecipes.class));
	list.add(new DummyConfigElement.DummyCategoryElement(
			"Blood Magic Integration",
			"tm2.configgui.category.tmBloodMagic", (Class<? extends IConfigEntry>) TMBloodMagic.class));
	list.add(new DummyConfigElement.DummyCategoryElement(
			"Thaumcraft Integration",
			"tm2.configgui.category.tmThaumcraft", (Class<? extends IConfigEntry>) TMTC.class));
	list.add(new DummyConfigElement.DummyCategoryElement(
			"Botania Integration", "tm2.configgui.category.tmBotania",
			(Class<? extends IConfigEntry>) TMBotania.class));
	return list;
}
 
开发者ID:TeamC4,项目名称:Talismans2,代码行数:23,代码来源:TalismanConfigGUI.java


示例2: buildChildScreen

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

    list.add(new DummyConfigElement("modID", "", ConfigGuiType.STRING, "forge.configgui.modID").setCustomListEntryClass(ModIDEntry.class));
    list.add(new ConfigElement(new Property("maximumTicketCount", "200", Property.Type.INTEGER, "forge.configgui.maximumTicketCount")));
    list.add(new ConfigElement(new Property("maximumChunksPerTicket", "25", Property.Type.INTEGER, "forge.configgui.maximumChunksPerTicket")));

    return new GuiConfig(this.owningScreen, list, this.owningScreen.modID,
            this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
            this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart, this.owningScreen.title,
            I18n.format("forge.configgui.ctgy.forgeChunkLoadingAddModConfig"));
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:15,代码来源:ForgeGuiFactory.java


示例3: getChildren

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
/** Gets the sub elements for a config category. */
private static IConfigElement getChildren(String category, String name) {
    
    return new DummyConfigElement.DummyCategoryElement(name, name,
            new ConfigElement(Accesstweaks.config.getCategory(category))
            .getChildElements());
}
 
开发者ID:JayAvery,项目名称:accesstweaks,代码行数:8,代码来源:ConfigGui.java


示例4: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> configElements = new ArrayList<>();
    for (ConfigurationHandler.Categories category : ConfigurationHandler.Categories.values()) {
        String description = Reference.MOD_NAME + " " + category.getName() + " Settings";
        String name = "agricraft.configgui.ctgy." + category.getName();
        configElements.add(new DummyConfigElement.DummyCategoryElement(
                description,
                name,
                new ConfigElement(ConfigurationHandler.getInstance().getConfiguration().getCategory(category.getName())).getChildElements()));
    }
    return configElements;
}
 
开发者ID:InfinityRaider,项目名称:NinjaGear,代码行数:13,代码来源:GuiConfig.java


示例5: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<>();

    List<IConfigElement> general = new ConfigElement(ConfigurationHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements();
    List<IConfigElement> spawnChances = new ConfigElement(ConfigurationHandler.config.getCategory(ConfigurationHandler.CATEGORY_PENGUIN_SPAWNS)).getChildElements();

    list.add(new DummyConfigElement.DummyCategoryElement("General", new ResourceLocation(Reference.MOD_ID, "config.category.general").toString(), general));
    list.add(new DummyConfigElement.DummyCategoryElement("Spawn Chances", new ResourceLocation(Reference.MOD_ID, "config.category.spawnchances").toString(), spawnChances));

    return list;
}
 
开发者ID:GirafiStudios,项目名称:Waddles,代码行数:12,代码来源:GuiFactory.java


示例6: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<>();
    for(ConfigurationHandler.Categories category : ConfigurationHandler.Categories.values()) {
        list.add(new DummyConfigElement.DummyCategoryElement(
                    category.getDescription(),
                    category.getLangKey(),
                    new ConfigElement(ConfigurationHandler.getInstance().config.getCategory(category.getName())).getChildElements()));
    }
    return list;
}
 
开发者ID:InfinityRaider,项目名称:3DManeuverGear,代码行数:11,代码来源:GuiFactory.java


示例7: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	// list.addAll(new
	// ConfigElement(Config.config.getCategory(Config.CATEGORY_GENERAL)).getChildElements());
	list.add(new DummyConfigElement.DummyCategoryElement("Entity & World Gen Balance",
			"category.arkcraft.mod1_balance", Mod1BalanceEntry.class));
	list.add(new DummyConfigElement.DummyCategoryElement("Items, Blocks, & Player Balance",
			"category.arkcraft.mod2_balance", Mod2BalanceEntry.class));
	return list;
}
 
开发者ID:BubbleTrouble14,项目名称:ARKCraft,代码行数:12,代码来源:ModConfigGui.java


示例8: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<>();

    List<IConfigElement> mobDrops = new ConfigElement(ConfigurationHandler.config.getCategory(ConfigurationHandler.CATEGORY_MOB_DROPS)).getChildElements();
    List<IConfigElement> modSupport = new ConfigElement(ConfigurationHandler.config.getCategory(ConfigurationHandler.CATEGORY_MOD_SUPPORT)).getChildElements();
    List<IConfigElement> rightClickHarvesting = new ConfigElement(ConfigurationHandler.config.getCategory(ConfigurationHandler.CATEGORY_RIGHT_CLICK_HARVESTING)).getChildElements();


    list.add(new DummyConfigElement.DummyCategoryElement("Mob Drops", Reference.MOD_ID + ".config.category.mobDrops", mobDrops));
    list.add(new DummyConfigElement.DummyCategoryElement("Mod Support", Reference.MOD_ID + ".config.category.modSupport", modSupport));
    list.add(new DummyConfigElement.DummyCategoryElement("Right Click Harvesting", Reference.MOD_ID + ".config.category.rightClickHarvesting", rightClickHarvesting));

    return list;
}
 
开发者ID:GirafiStudios,项目名称:Culinary-Cultivation,代码行数:15,代码来源:GuiFactory.java


示例9: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();

    list.add(new DummyConfigElement.DummyCategoryElement(GGRConfig.CATEGORY_GAMERULES, "ggr.configgui.rules",
            (new ConfigElement(GlobalGR.getConfig().getCategory(GGRConfig.CATEGORY_GAMERULES))).getChildElements(), GuiConfigEntries.CategoryEntry.class));
    list.add(new DummyConfigElement.DummyCategoryElement(GGRConfig.CATEGORY_MISC, "ggr.configgui.misc",
            (new ConfigElement(GlobalGR.getConfig().getCategory(GGRConfig.CATEGORY_MISC))).getChildElements(), GuiConfigEntries.CategoryEntry.class));
    return list;
}
 
开发者ID:GoryMoon,项目名称:GlobalGameRules,代码行数:10,代码来源:GGRConfigGUI.java


示例10: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.addAll((new ConfigElement(BaMsGrave.config.getCategory(BaMsConfig.CATEGORY_GENERAL))).getChildElements());
    list.add(new DummyConfigElement.DummyCategoryElement("bamsgraveTombstoneCfg", "bamsgrave.config.ctgy.tombstone", TombstoneEntry.class));
    list.add(new DummyConfigElement.DummyCategoryElement("bamsgraveCoffinCfg", "bamsgrave.config.ctgy.coffin", CoffinEntry.class));
    return list;
}
 
开发者ID:MrIbby,项目名称:BaMsGRAVE,代码行数:8,代码来源:BaMsGuiFactory.java


示例11: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<>();

    List<IConfigElement> listCustomText = new ConfigElement(ConfigurationHandler.config.getCategory(ConfigurationHandler.CATEGORY_CUSTOM_TEXT)).getChildElements();
    List<IConfigElement> general = new ConfigElement(ConfigurationHandler.config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements();

    list.add(new DummyConfigElement.DummyCategoryElement(I18n.format(Reference.MOD_ID + ".config.category.listCustomText.title"), Reference.MOD_ID + ".config.category.listCustomText", listCustomText));
    list.add(new DummyConfigElement.DummyCategoryElement(I18n.format(Reference.MOD_ID + ".config.category.general.title"), Reference.MOD_ID + ".config.category.general", general));

    return list;
}
 
开发者ID:GirafiStudios,项目名称:BetterTitleScreen,代码行数:12,代码来源:GuiFactory.java


示例12: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> configElements = new ArrayList<>();
    for (AgriConfigCategory e : AgriConfigCategory.values()) {
        String descr = "AgriCraft " + e.getDisplayName() + " Settings";
        String name = "agricraft.configgui.ctgy." + e.name();
        configElements.add(new DummyConfigElement.DummyCategoryElement(descr, name, new ConfigElement(CoreHandler.getConfig().getCategory(e.name().toLowerCase())).getChildElements()));
    }
    return configElements;
}
 
开发者ID:AgriCraft,项目名称:AgriCraft,代码行数:10,代码来源:AgriCraftGuiConfig.java


示例13: categoryElement

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
/** Creates a button linking to another screen where all options of the category are available */
private static IConfigElement categoryElement(String category, String name, String tooltip_key) 
{
    return new DummyConfigElement.DummyCategoryElement(name, tooltip_key,
            new ConfigElement(SoundPhysicsCore.configFile.getCategory(category)).getChildElements());
}
 
开发者ID:sonicether,项目名称:Sound-Physics,代码行数:7,代码来源:SPConfigGUI.java


示例14: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    List<IConfigElement> listsList = new ArrayList<IConfigElement>();
    List<IConfigElement> stringsList = new ArrayList<IConfigElement>();
    List<IConfigElement> numbersList = new ArrayList<IConfigElement>();
    Pattern commaDelimitedPattern = Pattern.compile("([A-Za-z]+((,){1}( )*|$))+?");
    
    // Top Level Settings
    list.add(new DummyConfigElement("imABoolean", true, ConfigGuiType.BOOLEAN, "fml.config.sample.imABoolean").setRequiresMcRestart(true));
    list.add(new DummyConfigElement("imAnInteger", 42, ConfigGuiType.INTEGER, "fml.config.sample.imAnInteger", -1, 256).setRequiresMcRestart(true));
    list.add(new DummyConfigElement("imADouble", 42.4242D, ConfigGuiType.DOUBLE, "fml.config.sample.imADouble", -1.0D, 256.256D).setRequiresMcRestart(true));
    list.add(new DummyConfigElement("imAString", "http://www.montypython.net/scripts/string.php", ConfigGuiType.STRING, "fml.config.sample.imAString").setRequiresMcRestart(true));
    
    // Lists category
    listsList.add(new DummyListElement("booleanList", new Boolean[] {true, false, true, false, true, false, true, false}, ConfigGuiType.BOOLEAN, "fml.config.sample.booleanList"));
    listsList.add(new DummyListElement("booleanListFixed", new Boolean[] {true, false, true, false, true, false, true, false}, ConfigGuiType.BOOLEAN, "fml.config.sample.booleanListFixed", true));
    listsList.add(new DummyListElement("booleanListMax", new Boolean[] {true, false, true, false, true, false, true, false}, ConfigGuiType.BOOLEAN, "fml.config.sample.booleanListMax", 10));
    listsList.add(new DummyListElement("doubleList", new Double[] {0.0D, 1.1D, 2.2D, 3.3D, 4.4D, 5.5D, 6.6D, 7.7D, 8.8D, 9.9D}, ConfigGuiType.DOUBLE, "fml.config.sample.doubleList"));
    listsList.add(new DummyListElement("doubleListFixed", new Double[] {0.0D, 1.1D, 2.2D, 3.3D, 4.4D, 5.5D, 6.6D, 7.7D, 8.8D, 9.9D}, ConfigGuiType.DOUBLE, "fml.config.sample.doubleListFixed", true));
    listsList.add(new DummyListElement("doubleListMax", new Double[] {0.0D, 1.1D, 2.2D, 3.3D, 4.4D, 5.5D, 6.6D, 7.7D, 8.8D, 9.9D}, ConfigGuiType.DOUBLE, "fml.config.sample.doubleListMax", 15));
    listsList.add(new DummyListElement("doubleListBounded", new Double[] {0.0D, 1.1D, 2.2D, 3.3D, 4.4D, 5.5D, 6.6D, 7.7D, 8.8D, 9.9D}, ConfigGuiType.DOUBLE, "fml.config.sample.doubleListBounded", -1.0D, 10.0D));
    listsList.add(new DummyListElement("integerList", new Integer[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ConfigGuiType.INTEGER, "fml.config.sample.integerList"));
    listsList.add(new DummyListElement("integerListFixed", new Integer[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ConfigGuiType.INTEGER, "fml.config.sample.integerListFixed", true));
    listsList.add(new DummyListElement("integerListMax", new Integer[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ConfigGuiType.INTEGER, "fml.config.sample.integerListMax", 15));
    listsList.add(new DummyListElement("integerListBounded", new Integer[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, ConfigGuiType.INTEGER, "fml.config.sample.integerListBounded", -1, 10));
    listsList.add(new DummyListElement("stringList", new String[] {"An", "array", "of", "string", "values"}, ConfigGuiType.STRING, "fml.config.sample.stringList"));
    listsList.add(new DummyListElement("stringListFixed", new String[] {"A", "fixed", "length", "array", "of", "string", "values"}, ConfigGuiType.STRING, "fml.config.sample.stringListFixed", true));
    listsList.add(new DummyListElement("stringListMax", new String[] {"An", "array", "of", "string", "values", "with", "a", "max", "length", "of", "15"}, ConfigGuiType.STRING, "fml.config.sample.stringListMax", 15));
    listsList.add(new DummyListElement("stringListPattern", new String[] {"Valid", "Not Valid", "Is, Valid", "Comma, Separated, Value"}, ConfigGuiType.STRING, "fml.config.sample.stringListPattern", commaDelimitedPattern));
    
    list.add(new DummyCategoryElement("lists", "fml.config.sample.ctgy.lists", listsList));
    
    // Strings category
    stringsList.add(new DummyConfigElement("basicString", "Just a regular String value, anything goes.", ConfigGuiType.STRING, "fml.config.sample.basicString"));
    stringsList.add(new DummyConfigElement("cycleString", "this", ConfigGuiType.STRING, "fml.config.sample.cycleString", new String[] {"this", "property", "cycles", "through", "a", "list", "of", "valid", "choices"}));
    stringsList.add(new DummyConfigElement("patternString", "only, comma, separated, words, can, be, entered, in, this, box", ConfigGuiType.STRING, "fml.config.sample.patternString", commaDelimitedPattern));
    stringsList.add(new DummyConfigElement("chatColorPicker", "c", ConfigGuiType.COLOR, "fml.config.sample.chatColorPicker", new String[] {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"}));
    stringsList.add(new DummyConfigElement("modIDSelector", "FML", ConfigGuiType.MOD_ID, "fml.config.sample.modIDSelector"));
    
    list.add(new DummyCategoryElement("strings", "fml.config.sample.ctgy.strings", stringsList));
    
    // Numbers category
    numbersList.add((new DummyConfigElement("basicInteger", 42, ConfigGuiType.INTEGER, "fml.config.sample.basicInteger")));
    numbersList.add((new DummyConfigElement("boundedInteger", 42, ConfigGuiType.INTEGER, "fml.config.sample.boundedInteger", -1, 256)));
    numbersList.add((new DummyConfigElement("sliderInteger", 2000, ConfigGuiType.INTEGER, "fml.config.sample.sliderInteger", 100, 10000)).setCustomListEntryClass(NumberSliderEntry.class));
    numbersList.add(new DummyConfigElement("basicDouble", 42.4242D, ConfigGuiType.DOUBLE, "fml.config.sample.basicDouble"));
    numbersList.add(new DummyConfigElement("boundedDouble", 42.4242D, ConfigGuiType.DOUBLE, "fml.config.sample.boundedDouble", -1.0D, 256.256D));
    numbersList.add(new DummyConfigElement("sliderDouble", 42.4242D, ConfigGuiType.DOUBLE, "fml.config.sample.sliderDouble", -1.0D, 256.256D).setCustomListEntryClass(NumberSliderEntry.class));

    list.add(new DummyCategoryElement("numbers", "fml.config.sample.ctgy.numbers", numbersList));
    
    return list;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:55,代码来源:FMLConfigGuiFactory.java


示例15: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyConfigElement.DummyCategoryElement("Basic configuration", "gui.taiga_configuration.ctgy.general", CategoryEntryGeneral.class));
    list.add(new DummyConfigElement.DummyCategoryElement("Ore specific settings", "gui.taiga_configuration.ctgy.oregen", CategoryEntryOreGen.class));
    return list;
}
 
开发者ID:TeamFRM,项目名称:TAIGA,代码行数:7,代码来源:TAIGAGuiFactory.java


示例16: getElements

import net.minecraftforge.fml.client.config.DummyConfigElement; //导入依赖的package包/类
/**
 * @return the list of elements to display on the ZSS GuiConfig screen. The list returned is displayed on the main configuration screen, 
 * and contains the categories of ZSS configurations that open into child screens.
 */
private static List<IConfigElement> getElements() {
	List<IConfigElement> categories = new ArrayList<>();

	//Create the hierarchy of elements to be displayed to the ConfigGui screen
	List<IConfigElement> general = new ConfigElement(Config.config.getCategory("general")).getChildElements();
	List<IConfigElement> client = new ConfigElement(Config.config.getCategory("client")).getChildElements();
	List<IConfigElement> weaponRegistry = new ConfigElement(Config.config.getCategory("weapon registry")).getChildElements();
	List<IConfigElement> items = new ConfigElement(Config.config.getCategory("item")).getChildElements();
	List<IConfigElement> bonusGear = new ConfigElement(Config.config.getCategory("bonus gear")).getChildElements();
	List<IConfigElement> skills = new ConfigElement(Config.config.getCategory("skills")).getChildElements();
	List<IConfigElement> dunGen = new ConfigElement(Config.config.getCategory("dungeon generation")).getChildElements();
	List<IConfigElement> worldGen = new ConfigElement(Config.config.getCategory("world generation")).getChildElements();
	List<IConfigElement> loot = new ConfigElement(Config.config.getCategory("loot")).getChildElements();
	List<IConfigElement> trades = new ConfigElement(Config.config.getCategory("trade")).getChildElements();
	List<IConfigElement> mobSpawning = new ConfigElement(Config.config.getCategory("mob spawns")).getChildElements();
	List<IConfigElement> recipes = new ConfigElement(Config.config.getCategory("recipes")).getChildElements();

	/*
	 * Add each category to the list to display
	 * Utilizing this versus a ConfigElement of the category type allows for capitalizing the name in the button, and lets you set the lang key
	 * Very Gui-friendly method
	 */
	categories.add(new DummyConfigElement.DummyCategoryElement("General", "config.zss.general.title", general));
	categories.add(new DummyConfigElement.DummyCategoryElement("Client", "config.zss.client.title", client));
	categories.add(new DummyConfigElement.DummyCategoryElement("Weapon Registry", "config.zss.weapon_registry.title", weaponRegistry).setRequiresMcRestart(true));
	categories.add(new DummyConfigElement.DummyCategoryElement("Items", "config.zss.item.title", items));
	categories.add(new DummyConfigElement.DummyCategoryElement("Bonus Gear", "config.zss.bonus_gear.title", bonusGear));
	categories.add(new DummyConfigElement.DummyCategoryElement("Skills", "config.zss.skills.title", skills));
	categories.add(new DummyConfigElement.DummyCategoryElement("Dungeon Generation", "config.zss.dun_gen.title", dunGen));
	categories.add(new DummyConfigElement.DummyCategoryElement("World Generation", "config.zss.world_gen.title", worldGen));
	categories.add(new DummyConfigElement.DummyCategoryElement("Loot", "config.zss.loot.title", loot));
	categories.add(new DummyConfigElement.DummyCategoryElement("Trades", "config.zss.trade.title", trades));
	categories.add(new DummyConfigElement.DummyCategoryElement("Mob Spawns", "config.zss.mob_spawns.title", mobSpawning).setRequiresMcRestart(true));
	categories.add(new DummyConfigElement.DummyCategoryElement("Recipes", "config.zss.recipes.title", recipes).setRequiresMcRestart(true));

	//This config is the only one of its category. Add to the main GuiConfig screen as its own element, since it is an independent Property
	categories.add(new ConfigElement(Config.config.get("mod support", "Can Offhand Master Swords", false, "[BattleGear2] Allow Master Swords to be held in the off-hand")));

	List<IConfigElement> list = new ArrayList<>();
	list.add(new DummyConfigElement.DummyCategoryElement("Configurations", "config.zss.parent.configs", categories));

	return list;
}
 
开发者ID:coolAlias,项目名称:ZeldaSwordSkills,代码行数:48,代码来源:GuiConfigZeldaSwordSkills.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DCAwareRoundRobinPolicy类代码示例发布时间:2022-05-21
下一篇:
Java ConfigurationException类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap