本文整理匯總了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();
}
};
}