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


Java ConfigHandler类代码示例

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


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

示例1: save

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
public void save()
{
    ConfigBase config = null;
    for(Tree tree : trees)
    {
        if(tree.element != null)
        {
            tree.config.save();
            break;
        }
    }
    if(ConfigHandler.configKeybind.hasChanged())
    {
        ConfigHandler.configKeybind.save();
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:17,代码来源:ElementPropSetter.java

示例2: GuiConfigs

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
public GuiConfigs(GuiScreen screen)
{
    VARIABLE_LEVEL = 0;

    Minecraft mc = Minecraft.getMinecraft();

    oriScale = mc.gameSettings.guiScale;
    mc.gameSettings.guiScale = 2;

    oriScreen = screen;

    windowConfigs = new WindowConfigs(this, 0, 0, 0, 0, 0, 0);
    windowCats = new WindowCats(this, 0, 0, 0, 0, 0, 0);
    windowSetter = new WindowSetter(this, 0, 0, 0, 0, 0, 0);
    addWindowOnTop(windowConfigs);
    addWindowOnTop(windowCats);
    addWindowOnTop(windowSetter);

    for(ConfigBase config : ConfigHandler.configs)
    {
        config.enterConfigScreen();
    }

    tooltipTime = 0;
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:26,代码来源:GuiConfigs.java

示例3: postInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
public void postInit()
{
    iChunUtil.oreDictBlockCompactRawPorkchop = OreDictionary.getOres("blockCompactRawPorkchop");

    for(ConfigBase cfg : ConfigHandler.configs)
    {
        cfg.setup();
    }

    if(!(iChunUtil.config.eulaAcknowledged.equalsIgnoreCase("true") || iChunUtil.config.eulaAcknowledged.equalsIgnoreCase(getPlayerName())))
    {
        iChunUtil.LOGGER.info("=============================================================");
        iChunUtil.LOGGER.info(I18n.translateToLocal("ichunutil.eula.message"));
        iChunUtil.LOGGER.info(I18n.translateToLocal("ichunutil.eula.messageServer"));
        iChunUtil.LOGGER.info("=============================================================");
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:18,代码来源:ProxyCommon.java

示例4: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    resourceHelper = new ResourceHelper(new File(event.getModConfigurationDirectory().getParent(), "/mods/clef"));

    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInitMod();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:Clef,代码行数:12,代码来源:Clef.java

示例5: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(eventHandlerClient);

    RenderingRegistry.registerEntityRenderingHandler(EntityGib.class, new RenderGib.RenderFactory());

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
 
开发者ID:iChun,项目名称:Mob-Dismemberment,代码行数:13,代码来源:MobDismemberment.java

示例6: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    eventHandler = new EventHandler();
    MinecraftForge.EVENT_BUS.register(eventHandler);

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));

    BooleanSupplier oldAcidEyesBooleanSupplier = HeadBase.acidEyesBooleanSupplier;
    HeadBase.acidEyesBooleanSupplier = () -> (GooglyEyes.config.acidTripEyes == 1 || oldAcidEyesBooleanSupplier.getAsBoolean());

    iChunUtil.config.reveal("aggressiveHeadTracking", "horseEasterEgg");
}
 
开发者ID:iChun,项目名称:GooglyEyes,代码行数:16,代码来源:GooglyEyes.java

示例7: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInitMod();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:Mob-Amputation,代码行数:10,代码来源:MobAmputation.java

示例8: onPreInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void onPreInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInit();

    channel = new PacketChannel(MOD_NAME, PacketBark.class, PacketSpawnParticles.class, PacketKeyState.class);

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:BeeBarker,代码行数:12,代码来源:BeeBarker.java

示例9: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInit();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:GuiltTrip,代码行数:10,代码来源:GuiltTrip.java

示例10: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    proxy.preInit();

    if(FMLCommonHandler.instance().getEffectiveSide().isClient())
    {
        config = ConfigHandler.registerConfig(new Config(new File(ResourceHelper.getConfigDir(), "config.cfg")));
    }

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:Keygrip,代码行数:13,代码来源:Keygrip.java

示例11: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    eventHandler = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(eventHandler);

    RenderingRegistry.registerEntityRenderingHandler(EntityWaypoint.class, new RenderWaypoint.RenderFactory());

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
 
开发者ID:iChun,项目名称:Blocksteps,代码行数:13,代码来源:Blocksteps.java

示例12: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
 
开发者ID:iChun,项目名称:Streak,代码行数:8,代码来源:Streak.java

示例13: preLoad

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preLoad(FMLPreInitializationEvent event)
{
    proxy.preInit();

    if(FMLCommonHandler.instance().getEffectiveSide().isClient())
    {
        config = ConfigHandler.registerConfig(new Config(new File(ResourceHelper.getConfigDir(), "config.cfg")));
    }

    EventHandler handler = new EventHandler();
    MinecraftForge.EVENT_BUS.register(handler);

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:Tabula,代码行数:16,代码来源:Tabula.java

示例14: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(eventHandlerClient);

    eventHandlerClient.initMod();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, true));
}
 
开发者ID:iChun,项目名称:Shatter,代码行数:13,代码来源:Shatter.java

示例15: preInit

import me.ichun.mods.ichunutil.common.core.config.ConfigHandler; //导入依赖的package包/类
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    HatHandler.hatsFolder = new File(event.getModConfigurationDirectory().getParent(), "/mods/hats");
    if(!HatHandler.hatsFolder.exists())
    {
        HatHandler.hatsFolder.mkdirs();
    }

    config = ConfigHandler.registerConfig(new Config(event.getSuggestedConfigurationFile()));

    proxy.preInitMod();

    UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(MOD_NAME, iChunUtil.VERSION_OF_MC, VERSION, false));
}
 
开发者ID:iChun,项目名称:Hats,代码行数:16,代码来源:Hats.java


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