本文整理汇总了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"));
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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"));
}
示例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;
}
示例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;
}
示例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;
}