Package net.minecraft.server

Examples of net.minecraft.server.CrashReport


      // Generate the chunk
      long time = System.nanoTime();
      try {
        chunk = CommonNMS.getChunk(this.chunkProvider.getOrCreateChunk(x, z));
      } catch (Throwable throwable) {
        CrashReport crashreport = CrashReport.a(throwable, "Exception generating new chunk");
        CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Chunk to be generated");
        crashreportsystemdetails.a("Location", String.format("%d,%d", x, z));
        crashreportsystemdetails.a("Position hash", Long.valueOf(MathUtil.longHashToLong(x, z)));
        crashreportsystemdetails.a("Generator", this.chunkProvider.getName());
        throw new ReportedException(crashreport);
      }
View Full Code Here


   * @param throwable that was thrown
   * @param chunkX coordinate of the chunk
   * @param chunkZ coordinate of the chunk
   */
  public void handleGeneratorError(Throwable throwable, int chunkX, int chunkZ) {
    CrashReport crashreport = CrashReport.a(throwable, "Exception generating new chunk");
    CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Chunk to be generated");
    crashreportsystemdetails.a("Location", String.format("%d,%d", chunkX, chunkZ));
    crashreportsystemdetails.a("Position hash", Long.valueOf(MathUtil.longHashToLong(chunkX, chunkZ)));
    crashreportsystemdetails.a("Generator", this.chunkProvider.getName());
    throw new ReportedException(crashreport);
  }
View Full Code Here

TOP

Related Classes of net.minecraft.server.CrashReport

Copyright © 2018 www.massapicom. 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.