java类cpw.mods.fml.common.event.FMLFingerprintViolationEvent的实例源码

ForgeMod.java 文件源码 项目:MC-MineAPI.Java 阅读 23 收藏 0 点赞 0 评论 0
@EventHandler
public void invalidFingerprint(FMLFingerprintViolationEvent event) // NO_UCD (unused code)
{
    // Check to see if fingerprint matches what we expect.
    if (ModMetadata.FINGERPRINT.equals( ModMetadata.FINGERPRINT ))
    {
        LogWrapper.warning( "The copy of " + ModMetadata.NAME +
                            " that you are running passesd all verification and fingerprint checks. It has not been modified from original." );
    }
    else
    {
        LogWrapper.severe( "The copy of " + ModMetadata.NAME +
                           " that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod." );
    }
}
Forestry.java 文件源码 项目:ForestryLegacy 阅读 23 收藏 0 点赞 0 评论 0
@FingerprintWarning
public void fingerprintWarning(FMLFingerprintViolationEvent event) {
    Proxies.log.warning("Fingerprint of the mod jar is invalid. The jar file was tampered with. This is not good.");
    //FMLInterModComms.sendMessage("Forestry", "securityViolation", "Fingerprint of jar file did not match.");
    FMLInterModComms.sendMessage("Railcraft", "securityViolation", "Fingerprint of jar file did not match.");
    FMLInterModComms.sendMessage("Thaumcraft", "securityViolation", "Fingerprint of jar file did not match.");
    FMLInterModComms.sendMessage("IC2", "securityViolation", "Fingerprint of jar file did not match.");
}
MiscPeripherals.java 文件源码 项目:PeripheralsPlusPlus 阅读 16 收藏 0 点赞 0 评论 0
@FingerprintWarning
public void onFingerprintWarning(FMLFingerprintViolationEvent event) {
    //System.out.println("MiscPeripherals has been tampered with!");
}
ATemplateMod.java 文件源码 项目:AbacusCommonsLib 阅读 20 收藏 0 点赞 0 评论 0
/**
 * A public method to handle if your mod's signature is invalidated, perhaps to provide some failing message.<p/>
 * From the {@link EventHandler} javadoc for methods using the {@link FMLFingerprintViolationEvent} parameter:
 * <pre>
 * FMLFingerprintViolationEvent:
 * Sent just before FMLPreInitializationEvent if something is wrong with your mod signature
 * </pre>
 * @param event A Forge event handler for "fingerprint" errata.
 */
@EventHandler
abstract public void fingerprintviolation(FMLFingerprintViolationEvent event);


问题


面经


文章

微信
公众号

扫码关注公众号