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


Java FMLFingerprintViolationEvent类代码示例

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


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

示例1: onFingerPrintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@Mod.EventHandler
public void onFingerPrintViolation(FMLFingerprintViolationEvent event)
{
    // Not running in a dev environment
    if (event.isDirectory() == false)
    {
        logger.warn("*********************************************************************************************");
        logger.warn("*****                                    WARNING                                        *****");
        logger.warn("*****                                                                                   *****");
        logger.warn("*****   The signature of the mod file '{}' does not match the expected fingerprint!     *****", event.getSource().getName());
        logger.warn("*****   This might mean that the mod file has been tampered with!                       *****");
        logger.warn("*****   If you did not download the mod {} directly from Curse/CurseForge,       *****", Reference.MOD_NAME);
        logger.warn("*****   or using one of the well known launchers, and you did not                       *****");
        logger.warn("*****   modify the mod file at all yourself, then it's possible,                        *****");
        logger.warn("*****   that it may contain malware or other unwanted things!                           *****");
        logger.warn("*********************************************************************************************");
    }
}
 
开发者ID:maruohon,项目名称:placementpreview,代码行数:19,代码来源:PlacementPreview.java

示例2: invalidFingerprint

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@Mod.EventHandler
public void invalidFingerprint(FMLFingerprintViolationEvent event) {
  if (ModInformation.MOD_FINGERPRINT.equals("@[email protected]")) {
    LogHelper.error("No fingerprint found!");
  } else {
    LogHelper.warn("Invalid fingerprint found!");
  }
}
 
开发者ID:TheRoBrit,项目名称:Snad,代码行数:9,代码来源:Snad.java

示例3: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation(FMLFingerprintViolationEvent event) {
  // https://tutorials.darkhax.net/tutorials/jar_signing/
  String source = (event.getSource() == null) ? "" : event.getSource().getName() + " ";
  String msg = "Invalid fingerprint detected! The file " + source + "may have been tampered with. This version will NOT be supported by the author!";
  if (logger == null) {
    System.out.println(msg);
  }
  else {
    ModCyclic.logger.error(msg);
  }
}
 
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:13,代码来源:ModCyclic.java

示例4: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation(FMLFingerprintViolationEvent event) {
    
    LOG.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!");
}
 
开发者ID:Darkhax-Minecraft,项目名称:DimensionStages,代码行数:6,代码来源:DimensionStages.java

示例5: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation (FMLFingerprintViolationEvent event) {

    LOG.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!");
}
 
开发者ID:Darkhax-Minecraft,项目名称:Game-Stages,代码行数:6,代码来源:GameStages.java

示例6: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation(@Nonnull final FMLFingerprintViolationEvent event) {
    log().warn("Invalid fingerprint detected!");
}
 
开发者ID:OreCruncher,项目名称:DynamicSurroundings,代码行数:5,代码来源:DSurround.java

示例7: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation (FMLFingerprintViolationEvent event) {

    LOG.error("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!");
}
 
开发者ID:Darkhax-Minecraft,项目名称:Tesla,代码行数:6,代码来源:Tesla.java

示例8: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation (FMLFingerprintViolationEvent event) {

    LOGGER.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!");
}
 
开发者ID:Darkhax-Minecraft,项目名称:Dark-Utilities,代码行数:6,代码来源:DarkUtils.java

示例9: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation (FMLFingerprintViolationEvent event) {

    Constants.LOG.error("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!");
}
 
开发者ID:Darkhax-Minecraft,项目名称:Bookshelf,代码行数:6,代码来源:Bookshelf.java

示例10: onFingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation(FMLFingerprintViolationEvent event) {
	LogHelper.log(Level.WARN, "Invalid fingerprint detected! The version of the mod is most likely modified and an inofficial release.");
	LogHelper.log(Level.WARN, "Use with caution.");

}
 
开发者ID:Aroma1997,项目名称:BetterChests,代码行数:7,代码来源:BetterChests.java

示例11: fingerprintViolation

import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@Mod.EventHandler
public void fingerprintViolation(FMLFingerprintViolationEvent fingerprintViolationEvent){
	CLLLogger.logWarning("This jar file of Combustible Lemon Launcher failed the fingerprint validation!");
}
 
开发者ID:Phlenum,项目名称:Combustible-Lemon-Launcher,代码行数:5,代码来源:CombustibleLemonLauncher.java


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