Package com.comphenix.protocol.error

Examples of com.comphenix.protocol.error.ErrorReporter.reportWarning()


      // Attempt to use MCPC
      try {
        return classSource = new RemappedClassSource().initialize();
      } catch (RemapperUnavaibleException e) {
        if (e.getReason() != Reason.MCPC_NOT_PRESENT)
          reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_FIND_MCPC_REMAPPER));
      } catch (Exception e) {
        reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_LOAD_CPC_REMAPPER));
      }
     
      // Just use the default class loader
View Full Code Here


        return classSource = new RemappedClassSource().initialize();
      } catch (RemapperUnavaibleException e) {
        if (e.getReason() != Reason.MCPC_NOT_PRESENT)
          reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_FIND_MCPC_REMAPPER));
      } catch (Exception e) {
        reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_LOAD_CPC_REMAPPER));
      }
     
      // Just use the default class loader
      classSource = ClassSource.fromClassLoader();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.