Package net.minecraft.util

Examples of net.minecraft.util.ReportedException


        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here


        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

        catch (Throwable throwable)
        {
            CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Oxygen Sealer thread: Exception getting block type in world");
            CrashReportCategory crashreportcategory = crashreport.makeCategory("Requested block coordinates");
            crashreportcategory.addCrashSection("Location", CrashReportCategory.getLocationInfo(this.x, this.y, this.z));
            throw new ReportedException(crashreport);
        }
    }
View Full Code Here

    catch( Throwable t )
    {
          CrashReport crashreport = CrashReport.makeCrashReport(t, "Ticking GridNode");
          CrashReportCategory crashreportcategory = crashreport.makeCategory( tt.gt.getClass().getSimpleName() + " being ticked." );
            tt.addEntityCrashInfo(crashreportcategory);
            throw new ReportedException(crashreport);
    }
  }
View Full Code Here

  public byte getByte(String tag) {
    try {
      NBTTagByte nbtTagByte = (NBTTagByte) tagMap.get(tag);
      return nbtTagByte == null ? 0 : nbtTagByte.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 1, e));
    }
  }
View Full Code Here

  public short getShort(String tag) {
    try {
      NBTTagShort nbtTagShort = (NBTTagShort) tagMap.get(tag);
      return nbtTagShort == null ? 0 : nbtTagShort.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 2, e));
    }
  }
View Full Code Here

  public int getInteger(String tag) {
    try {
      NBTTagInt nbtTagInt = (NBTTagInt) tagMap.get(tag);
      return nbtTagInt == null ? 0 : nbtTagInt.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 3, e));
    }
  }
View Full Code Here

  public long getLong(String tag) {
    try {
      NBTTagLong nbtTagLong = (NBTTagLong) tagMap.get(tag);
      return nbtTagLong == null ? 0 : nbtTagLong.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 4, e));
    }
  }
View Full Code Here

TOP

Related Classes of net.minecraft.util.ReportedException

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.