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


Java DummyCategoryElement类代码示例

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


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

示例1: buildChildScreen

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的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: createConfigurationCategory

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
public static IConfigElement createConfigurationCategory(Configuration config) {
    final Property property = getProperty(config);

    final TIntSet values = new TIntHashSet(property.getIntList());

    final List<IConfigElement> filterList = Lists.newArrayList();

    for (int keyCode = 0; keyCode < Keyboard.KEYBOARD_SIZE; keyCode++) {
        final String keyName = Keyboard.getKeyName(keyCode);
        if (keyName != null)
            filterList.add(new FlagArrayElement(property, values, keyCode, keyName));
    }

    final ConfigCategory category = config.getCategory(ConfigValues.CATEGORY_KEY_FILTER);
    return new DummyCategoryElement(category.getName(), category.getLanguagekey(), filterList);
}
 
开发者ID:boq,项目名称:ClicketyClack,代码行数:17,代码来源:KeyFilterConfig.java

示例3: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements(GuiScreen parent) {
  List<IConfigElement> result = new ArrayList<>();
  List<ModContainer> modList = Loader.instance().getModList();
  for (ModContainer modContainer : modList) {
    Object mod = modContainer.getMod();
    if (mod instanceof IEnderIOAddon) {
      Configuration configuration = ((IEnderIOAddon) mod).getConfiguration();
      if (configuration != null) {
        List<IConfigElement> list = new ArrayList<>();
        for (String section : configuration.getCategoryNames()) {
          list.add(new ConfigElement(configuration.getCategory(section).setLanguageKey(EnderIO.lang.addPrefix("config." + section))));
        }
        result.add(new DummyCategoryElement(modContainer.getName(), EnderIO.lang.addPrefix("config.title." + modContainer.getModId()), list));
      }
    }
  }

  return result;
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:20,代码来源:GuiConfigFactoryEIO.java

示例4: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyCategoryElement("forgeCfg", "forge.configgui.ctgy.forgeGeneralConfig", GeneralEntry.class));
    list.add(new DummyCategoryElement("forgeClientCfg", "forge.configgui.ctgy.forgeClientConfig", ClientEntry.class));
    list.add(new DummyCategoryElement("forgeChunkLoadingCfg", "forge.configgui.ctgy.forgeChunkLoadingConfig", ChunkLoaderEntry.class));
    list.add(new DummyCategoryElement("forgeVersionCheckCfg", "forge.configgui.ctgy.VersionCheckConfig", VersionCheckEntry.class));
    return list;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:10,代码来源:ForgeGuiFactory.java

示例5: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
public List<IConfigElement> getConfigElements() {
	if (delegateCfgMgr != null)
		return delegateCfgMgr.getConfigElements();

	List<IConfigElement> elems = new ArrayList<>();
	for (ConfigManager subCfgMgr : subCfgMgrs) {
		List<IConfigElement> subElems = subCfgMgr.getConfigElements();
		if (subElems.size() > 0)
			elems.add(new DummyCategoryElement("", "", subElems));
	}
	return elems;
}
 
开发者ID:hea3ven,项目名称:CommonUtils,代码行数:14,代码来源:DirectoryConfigManager.java

示例6: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
private static List<IConfigElement> getConfigElements()
{
	Configuration config = ModConfiguration.getConfig();

	// top level settings
	List<IConfigElement> list = new ConfigElement(config.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements();

	// second level settings
	list.add(new DummyCategoryElement("nuggetsConfigDummyElement", "uncrafting.options.nuggets", CategoryEntryNuggets.class));

	return list;
}
 
开发者ID:crazysnailboy,项目名称:UncraftingTable,代码行数:14,代码来源:ModGuiConfig.java

示例7: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
/** Compiles a list of config elements */
private static List<IConfigElement> getConfigElements() {
	// Add categories to config GUI
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyCategoryElement(Reference.catOptions, "mw.configgui.ctgy.general", new ConfigElement(ConfigurationHandler.configuration.getCategory(Reference.catOptions)).getChildElements()));

	list.add(new DummyCategoryElement(Reference.catFullMapConfig, "mw.configgui.ctgy.fullScreenMap", new ConfigElement(ConfigurationHandler.configuration.getCategory(Reference.catFullMapConfig)).getChildElements(), MapModeConfigEntry.class));

	list.add(new DummyCategoryElement(Reference.catLargeMapConfig, "mw.configgui.ctgy.largeMap", new ConfigElement(ConfigurationHandler.configuration.getCategory(Reference.catLargeMapConfig)).getChildElements(), MapModeConfigEntry.class));

	list.add(new DummyCategoryElement(Reference.catSmallMapConfig, "mw.configgui.ctgy.smallMap", new ConfigElement(ConfigurationHandler.configuration.getCategory(Reference.catSmallMapConfig)).getChildElements(), MapModeConfigEntry.class));
	return list;
}
 
开发者ID:tom5454,项目名称:Toms-Mod,代码行数:14,代码来源:ModGuiConfig.java

示例8: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
public static List<IConfigElement> getConfigElements() {
	List<IConfigElement> list = new ArrayList<>();
	list.add(new DummyCategoryElement("mobCfg", "mobCfg", MobEntry.class));
	list.add(new DummyCategoryElement("chanceCfg", "chanceCfg", ChanceEntry.class));
	list.add(new DummyCategoryElement("behaviorCfg", "behaviorCfg", BehaviorEntry.class));
	list.add(new DummyCategoryElement("debugCfg", "debugCfg", DebugEntry.class));
	list.addAll(new ConfigElement(MobRebirth.general.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements());
	if (MobRebirth.instance.getHasCustomMobSettings())
		list.add(new DummyCategoryElement("customMobs", "customMobs", CustomMobEntry.class));
	return list;
}
 
开发者ID:The-Fireplace-Minecraft-Mods,项目名称:Mob-Rebirth,代码行数:12,代码来源:MobRebirthConfigGui.java

示例9: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List< IConfigElement > getConfigElements()
{
	List< IConfigElement > list = new ArrayList< IConfigElement >();
	
	// This will be repeated by the generator for each category
	list.add( new DummyCategoryElement( getAutoConfig().categories()[ 0 ], getConfigTitle() + ":" + getAutoConfig().categories()[ 0 ], DummyEntry.class ) );
	
	return list;
}
 
开发者ID:spacechase0,项目名称:SpaceCore,代码行数:10,代码来源:BaseConfigGui.java

示例10: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
	List<IConfigElement> list = Lists.newArrayList();
	list.add(new DummyCategoryElement("general", TranslateKeys.GUI_EASYEDITORSCONFIG_CTGY_GENERAL,
			GeneralEntry.class));
	list.add(new DummyCategoryElement("colors", TranslateKeys.GUI_EASYEDITORSCONFIG_CTGY_COLORS,
			ColorsEntry.class));
	return list;
}
 
开发者ID:Earthcomputer,项目名称:Easy-Editors,代码行数:9,代码来源:GuiFactory.java

示例11: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyCategoryElement("function", "gui.config.function", FunctionEntry.class));
	list.add(new DummyCategoryElement("load", "gui.config.load", LoadEntry.class));
	list.add(new DummyCategoryElement("misc", "gui.config.misc", MiscEntry.class));
	return list;
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:9,代码来源:ConfigGuiFactory.java

示例12: buildChildScreen

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen()
{
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyCategoryElement("dimensions", "gui.config.dimensions", TerrainEntry.class));
	list.add(new DummyCategoryElement("biomes", "gui.config.biomes", BiomesEntry.class));
	list.addAll((new ConfigElement(ConfigHandler.config.getCategory(ConfigHandler.CATEGORY_MISC))).getChildElements());

	return new GuiConfig(this.owningScreen, list, this.owningScreen.modID, ConfigHandler.CATEGORY_MISC,
			this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
			this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
			I18n.format("gui.config.misc"),
			I18n.format("gui.config.misc.tooltip"));
}
 
开发者ID:NovaViper,项目名称:ZeroQuest,代码行数:15,代码来源:ConfigGuiFactory.java

示例13: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
private static List<IConfigElement> getConfigElements(){
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_dimensions"), "ac_dimensions", DimensionEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_biomegen"), "ac_biomegen", BiomeGenerationEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_biomespawn"), "ac_biomespawn", BiomeSpawnEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_biomeweight"), "ac_biomeweight", BiomeWeightEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_general"), "ac_general", GeneralEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_shoggoth"), "ac_shoggoth", ShoggothEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_worldgen"), "ac_worldgen", WorldGenEntry.class));
	list.add(new DummyCategoryElement(I18n.translateToLocal("ac_itemblacklist"), "ac_itemblacklist", ItemBlacklistEntry.class));
	return list;
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:14,代码来源:ACConfigGUI.java

示例14: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
	List<IConfigElement> list = new ArrayList<IConfigElement>();
       list.add(new DummyCategoryElement("general", "gui.general", GeneralEntry.class));
       list.add(new DummyCategoryElement("blocks", "gui.blocks", BlocksEntry.class));
       list.add(new DummyCategoryElement("upgrades", "gui.upgrade", UpgradesEntry.class));
       list.add(new DummyCategoryElement("rfoptions", "gui.rfoptions", RFOptionsEntry.class));
       return list;
}
 
开发者ID:Vanhal,项目名称:ProgressiveAutomation,代码行数:9,代码来源:PAGuiConfig.java

示例15: getConfigElements

import net.minecraftforge.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
	List<IConfigElement> list = new ArrayList<IConfigElement>();
	list.add(new DummyCategoryElement(I18n.format("gui.config.category.blocks"), "gui.config.category.blocks",
			CategoryEntryBlocks.class));
	return list;
}
 
开发者ID:IvanSteklow,项目名称:VanillaExtras,代码行数:7,代码来源:VExGuiFactory.java


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