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