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