本文整理汇总了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("*********************************************************************************************");
}
}
示例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!");
}
}
示例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);
}
}
示例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!");
}
示例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!");
}
示例6: onFingerprintViolation
import net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent; //导入依赖的package包/类
@EventHandler
public void onFingerprintViolation(@Nonnull final FMLFingerprintViolationEvent event) {
log().warn("Invalid fingerprint detected!");
}
示例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!");
}
示例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!");
}
示例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!");
}
示例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.");
}
示例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!");
}