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


Java UpdateChecker类代码示例

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


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

示例1: onIMCMessage

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的package包/类
@Mod.EventHandler
public void onIMCMessage(FMLInterModComms.IMCEvent event)
{
    for(FMLInterModComms.IMCMessage message : event.getMessages())
    {
        if(message.key.equalsIgnoreCase("update") && message.isStringMessage())
        {
            String[] split = message.getStringValue().split(">");
            if(split.length != 4)
            {
                LOGGER.info("Invalid update checker string " + message.getStringValue() + ". Invalid argument count!");
            }
            else //Mod name, MC version, mod version, clientSideOnly
            {
                UpdateChecker.registerMod(new UpdateChecker.ModVersionInfo(split[0], split[1], split[2], split[3].equalsIgnoreCase("true")));
            }
        }
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:20,代码来源:iChunUtil.java

示例2: execute

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的package包/类
@Override
public void execute(Side side, EntityPlayer player)
{
    for(UpdateChecker.ModVersionInfo info : UpdateChecker.getModsWithUpdates())
    {
        if(!notifyUpdate && !info.isModClientOnly)
        {
            continue;
        }
        iChunUtil.LOGGER.info("[NEW UPDATE AVAILABLE] " + info.modName + " - " + info.modVersionNew);
    }

    if(iChunUtil.config.versionNotificationFrequency == 1 || iChunUtil.config.versionNotificationFrequency == 2 && iChunUtil.config.versionSave != EventCalendar.day)
    {
        handleClient(notifyUpdate);
    }
}
 
开发者ID:iChun,项目名称:iChunUtil,代码行数:18,代码来源:PacketUserShouldShowUpdates.java

示例3: preInit

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

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

示例4: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    proxy.preInitMod();

    channel = new PacketChannel(Torched.MOD_NAME, PacketKeyEvent.class);

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

示例5: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例6: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的package包/类
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    eventHandlerClient = new EventHandlerClient();
    MinecraftForge.EVENT_BUS.register(eventHandlerClient);

    orientationMap.put(ItemSword.class, 2);
    orientationMap.put(ItemBow.class, 1);

    (new ThreadCheckModSupport()).start();

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

示例7: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例8: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例9: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例10: onPreInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例11: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例12: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例13: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例14: preInit

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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

示例15: preLoad

import me.ichun.mods.ichunutil.common.module.update.UpdateChecker; //导入依赖的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


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