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

项目:MC-MineAPI.Java    文件:ForgeMod.java   
@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." );
    }
}
项目:ForestryLegacy    文件:Forestry.java   
@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.");
}
项目:PeripheralsPlusPlus    文件:MiscPeripherals.java   
@FingerprintWarning
public void onFingerprintWarning(FMLFingerprintViolationEvent event) {
    //System.out.println("MiscPeripherals has been tampered with!");
}
项目:AbacusCommonsLib    文件:ATemplateMod.java   
/**
 * 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);