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


Java DummyCategoryElement类代码示例

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


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

示例1: getElements

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
/** Create configuration element list */
private static List<IConfigElement> getElements() {
    ArrayList<IConfigElement> list = new ArrayList<IConfigElement>();

    List<IConfigElement> listGeneral = new ConfigElement(
            ThaumOresMod.config.getInstance().getCategory(TOConfig.categoryGeneral)).getChildElements();
    List<IConfigElement> listDebug = new ConfigElement(
            ThaumOresMod.config.getInstance().getCategory(TOConfig.categoryDebug)).getChildElements();
    List<IConfigElement> listGeneration = new ConfigElement(
            ThaumOresMod.config.getInstance().getCategory(TOConfig.categoryGeneration)).getChildElements();

    list.add(new DummyCategoryElement(TOConfig.categoryGeneral, TOConfig.categoryGeneral, listGeneral));
    list.add(new DummyCategoryElement(TOConfig.categoryDebug, TOConfig.categoryDebug, listDebug));
    list.add(new DummyCategoryElement(TOConfig.categoryGeneration, TOConfig.categoryGeneration, listGeneration));
    return list;
}
 
开发者ID:MJaroslav,项目名称:ThaumOres,代码行数:17,代码来源:TOGuiConfig.java

示例2: buildChildScreen

import cpw.mods.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.func_135052_a("forge.configgui.ctgy.forgeChunkLoadingConfig"));
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:18,代码来源:ForgeGuiFactory.java

示例3: buildChildScreen

import cpw.mods.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:alexandrage,项目名称:CauldronGit,代码行数:18,代码来源:ForgeGuiFactory.java

示例4: getConfigClasses

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
static List<IConfigElement> getConfigClasses()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyCategoryElement("Chicken", "com.HerdCraft.common.guiconfig.ConfigGUIChicken", ConfigGUIChicken.class));
    list.add(new DummyCategoryElement("Cow", "com.HerdCraft.common.guiconfig.ConfigGUICow", ConfigGUICow.class));
    list.add(new DummyCategoryElement("Horse", "com.HerdCraft.common.guiconfig.ConfigGUIHorse", ConfigGUIHorse.class));
    list.add(new DummyCategoryElement("Pig", "com.HerdCraft.common.guiconfig.ConfigGUIPig", ConfigGUIPig.class));
    list.add(new DummyCategoryElement("Sheep", "com.HerdCraft.common.guiconfig.ConfigGUISheep", ConfigGUISheep.class));
    
    list.add(new DummyCategoryElement("Zombie", "com.HerdCraft.common.guiconfig.ConfigGUIZombie", ConfigGUIZombie.class));
    list.add(new DummyCategoryElement("Zombie Pigman", "com.HerdCraft.common.guiconfig.ConfigGUIZombiePigman", ConfigGUIZombiePigman.class));
    list.add(new DummyCategoryElement("Skeleton", "com.HerdCraft.common.guiconfig.ConfigGUISkeleton", ConfigGUISkeleton.class));
    list.add(new DummyCategoryElement("Creeper", "com.HerdCraft.common.guiconfig.ConfigGUICreeper", ConfigGUICreeper.class));
    
    list.add(new DummyCategoryElement("Magnet", "com.HerdCraft.common.guiconfig.ConfigGUIMagnet", ConfigGUIMagnet.class));
    return list;
}
 
开发者ID:MinecraftModArchive,项目名称:Herdcraft,代码行数:18,代码来源:HerdGuiScreen.java

示例5: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    if (!Data.converted())
    	list.add(new DummyCategoryElement(Format.s("config.hud.title"), "ctf.config.HUD", CTFHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.chat.title"), "ctf.config.Chat", CTFChat.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "ctf.config.Alerts", CTFAlerts.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "ctf.config.Sounds", SoundsEntry.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("ctf.config.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:17,代码来源:ConfigCTF.java

示例6: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    if (!Data.converted())
    	list.add(new DummyCategoryElement(Format.s("config.hud.title"), "mcpvp.config.maze.HUD", MazeHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "mcpvp.config.maze.Alerts", MazeAlerts.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "mcpvp.config.maze.Sounds", MazeSounds.class));
    list.add(new DummyCategoryElement(Format.s("config.select.title"), "mcpvp.config.maze.Select", MazeSelect.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("config.maze.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:17,代码来源:ConfigMaze.java

示例7: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    if (!Data.converted())
    	list.add(new DummyCategoryElement(Format.s("config.hud.title"), "mcpvp.config.sab.HUD", SabHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "mcpvp.config.sab.Alerts", SabAlerts.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "mcpvp.config.sab.Sounds", SabSounds.class));
    list.add(new DummyCategoryElement(Format.s("config.select.title"), "mcpvp.config.sab.Select", SabSelect.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("config.sab.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:17,代码来源:ConfigSab.java

示例8: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    list.add(new DummyCategoryElement(Format.s("config.friends.title"), "config.friends", AllFriends.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "config.alerts", AllAlerts.class));
    list.add(new DummyCategoryElement(Format.s("config.chat.title"), "config.chat", AllChat.class));
    list.add(new DummyCategoryElement(Format.s("config.hud.title"), "config.hud", AllHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.select.title"), "config.select", AllSelect.class));
    list.add(new DummyCategoryElement(Format.s("config.version.title"), "config.version", AllVersion.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "config.sounds", AllSounds.class));
    list.add(new DummyCategoryElement(Format.s("config.misc.title"), "config.misc", AllMisc.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("config.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:20,代码来源:ConfigAll.java

示例9: getConfigElements

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements() {
       List<IConfigElement> list = new ArrayList<IConfigElement>();
       
       list.add(new DummyCategoryElement(Format.s("server.all"), "config.mcpvp", ConfigAll.class));
       list.add(new DummyCategoryElement(Server.HG.getName(), "config.hg", ConfigHG.class));
       list.add(new DummyCategoryElement(Server.MAZE.getName(), "config.maze", ConfigMaze.class));
       list.add(new DummyCategoryElement(Server.CTF.getName(), "config.ctf", ConfigCTF.class));
       list.add(new DummyCategoryElement(Server.SAB.getName(), "config.sab", ConfigSab.class));
       list.add(new DummyCategoryElement(Server.KIT.getName(), "config.kit", ConfigKit.class));
       list.add(new DummyCategoryElement(Server.BUILD.getName(), "config.build", ConfigBuild.class));
       list.add(new DummyCategoryElement(Server.RAID.getName(), "config.raid", ConfigRaid.class));
       list.add(new DummyCategoryElement(Server.HS.getName(), "config.hs", ConfigHS.class));
       list.add(new DummyCategoryElement(Server.SMASH.getName(), "config.smash", ConfigSmash.class));

       return list;

}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:18,代码来源:GuiFactory.java

示例10: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    if (!Data.converted())
    	list.add(new DummyCategoryElement(Format.s("config.hud.title"), "config.smash.hud", SmashHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "config.smash.alerts", SmashAlerts.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "config.smash.sounds", SmashSounds.class));
    list.add(new DummyCategoryElement(Format.s("config.select.title"), "config.smash.select", SmashSelect.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("config.smash.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:17,代码来源:ConfigSmash.java

示例11: buildChildScreen

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
@Override
protected GuiScreen buildChildScreen() {
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    
    if (!Data.converted())
    	list.add(new DummyCategoryElement(Format.s("config.hud.title"), "config.hud", HGHUD.class));
    list.add(new DummyCategoryElement(Format.s("config.alerts.title"), "config.alerts", HGAlets.class));
    list.add(new DummyCategoryElement(Format.s("config.sounds.title"), "config.sounds", HGSounds.class));
    list.add(new DummyCategoryElement(Format.s("config.select.title"), "config.select", HGSelect.class));
    
    return new GuiConfig(this.owningScreen,
    		list, 
    		this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart, 
    		this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
    		Format.s("config.hg.title"));
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:17,代码来源:ConfigHG.java

示例12: getConfigElements

import cpw.mods.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("forgeChunkLoadingCfg", "forge.configgui.ctgy.forgeChunkLoadingConfig", ChunkLoaderEntry.class));
    return list;
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:8,代码来源:ForgeGuiFactory.java

示例13: getConfigElements

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[0], "config.thallus:debugConfig", DebugEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[1], "config.thallus:blockConfig", BlockEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[2], "config.thallus:itemConfig", ItemEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[3], "config.thallus:guiConfig", GuiEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[4], "config.thallus:worldConfig", WorldEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[5], "config.thallus:soundConfig", SoundEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[6], "config.thallus:achievementConfig", AchievementEntry.class));
    list.add(new DummyCategoryElement(ConfigurationHandler.CONFIG_CATERGORY[7], "config.thallus:modConfig", ModEntry.class));
    return list;
}
 
开发者ID:Kithio,项目名称:Thallus,代码行数:14,代码来源:ModGuiConfig.java

示例14: getConfigElements

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.general"), "mekanism.configgui.ctgy.general", GeneralEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.machines"), "mekanism.configgui.ctgy.machines", MachinesEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.tier"), "mekanism.configgui.ctgy.tier", TierEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.usage"), "mekanism.configgui.ctgy.usage", UsageEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.client"), "mekanism.configgui.ctgy.client", ClientEntry.class));
    return list;
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:11,代码来源:GuiMekanismConfig.java

示例15: getConfigElements

import cpw.mods.fml.client.config.DummyConfigElement.DummyCategoryElement; //导入依赖的package包/类
private static List<IConfigElement> getConfigElements()
{
    List<IConfigElement> list = new ArrayList<IConfigElement>();
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.tools.general"), "mekanism.configgui.ctgy.tools.general", GeneralEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.tools.armor"), "mekanism.configgui.ctgy.tools.armor", ArmorEntry.class));
    list.add(new DummyCategoryElement(MekanismUtils.localize("mekanism.configgui.ctgy.tools.tools"), "mekanism.configgui.ctgy.tools.tools", ToolsEntry.class));
    return list;
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:9,代码来源:GuiToolsConfig.java


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