Java 类cpw.mods.fml.common.asm.transformers.AccessTransformer 实例源码

项目:4Space-5    文件:CodeChickenAccessTransformer.java   
private void readMapFile(String mapFile)
{
    CodeChickenCorePlugin.logger.debug("Adding Accesstransformer map: " + mapFile);
    try
    {
        Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class);
        parentMapFile.setAccessible(true);
        parentMapFile.invoke(this, mapFile);
    }
    catch(Exception e)
    {
        throw new RuntimeException(e);
    }
}
项目:ElConQore    文件:EQAccessTransformer.java   
private void readMapFile(String mapFile) {
    try {
        Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class);
        parentMapFile.setAccessible(true);
        parentMapFile.invoke(this, mapFile);
    } catch(Exception e) {
        e.printStackTrace();
        throw new RuntimeException(e);
    }
}
项目:CoreModUpdator    文件:CustomAT.java   
private void readMapFile(final String mapFile)
{
    try
    {
        final Method parentMapFile = AccessTransformer.class.getDeclaredMethod("readMapFile", String.class);
        parentMapFile.setAccessible(true);
        parentMapFile.invoke(this, mapFile);
    }
    catch (final Exception e)
    {
        throw new RuntimeException(e);
    }
}