Examples of ReportedException


Examples of net.minecraft.util.ReportedException

  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

Examples of net.minecraft.util.ReportedException

  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

Examples of net.minecraft.util.ReportedException

  public float getFloat(String tag) {
    try {
      NBTTagFloat nbtTagFloat = (NBTTagFloat) tagMap.get(tag);
      return nbtTagFloat == null ? 0 : nbtTagFloat.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 5, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public double getDouble(String tag) {
    try {
      NBTTagDouble nbtTagDouble = (NBTTagDouble) tagMap.get(tag);
      return nbtTagDouble == null ? 0 : nbtTagDouble.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 6, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public String getString(String tag) {
    try {
      NBTTagString nbtTagString = (NBTTagString) tagMap.get(tag);
      return nbtTagString == null ? "" : nbtTagString.data;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 8, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public byte[] getByteArray(String tag) {
    try {
      NBTTagByteArray nbtTagByteArray = (NBTTagByteArray) tagMap.get(tag);
      return nbtTagByteArray == null ? new byte[0] : nbtTagByteArray.byteArray;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 7, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public int[] getIntArray(String tag) {
    try {
      NBTTagIntArray nbtTagIntArray = (NBTTagIntArray) tagMap.get(tag);
      return nbtTagIntArray == null ? new int[0] : nbtTagIntArray.intArray;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 11, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public NBTTagCompound getCompoundTag(String tag) {
    try {
      NBTTagCompound nbtTagCompound = (NBTTagCompound) tagMap.get(tag);
      return nbtTagCompound == null ? new NBTTagCompound(tag) : nbtTagCompound;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 10, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

  public NBTTagList getTagList(String tag) {
    try {
      NBTTagList nbtTagList = (NBTTagList) tagMap.get(tag);
      return nbtTagList == null ? new NBTTagList(tag) : nbtTagList;
    } catch (ClassCastException e) {
      throw new ReportedException(createCrashReport(tag, 9, e));
    }
  }
View Full Code Here

Examples of net.minecraft.util.ReportedException

          } catch (Throwable var7) {
            var4 = CrashReport.makeCrashReport(var7, "Ticking entity");
            var5 = var4.makeCategory("Entity being ticked");
            weatherEffect.addEntityCrashInfo(var5);

            throw new ReportedException(var4);
          }
        }

        theProfiler.endSection();
        theProfiler.startSection("remove");

        if (weatherEffect.isDead) {
          var3 = weatherEffect.chunkCoordX;
          var13 = weatherEffect.chunkCoordZ;

          if (weatherEffect.addedToChunk) {
            Chunk chunk = getChunkIfExists(var3, var13);
            if (chunk != null) {
              chunk.removeEntity(weatherEffect);
            }
          }

          loadedEntityList.remove(var1--);
          onEntityRemoved(weatherEffect);
        }

        theProfiler.endSection();
      }
      theProfiler.endStartSection("tileEntities");
      scanningTileEntities = true;

      Iterator var14 = loadedTileEntityList.iterator();

      while (var14.hasNext()) {
        TileEntity var9 = (TileEntity) var14.next();

        if (!var9.isInvalid() && var9.hasWorldObj() && blockExists(var9.xCoord, var9.yCoord, var9.zCoord)) {
          try {
            var9.updateEntity();
          } catch (Throwable var8) {
            var4 = CrashReport.makeCrashReport(var8, "Ticking tile entity");
            var5 = var4.makeCategory("Tile entity being ticked");
            var9.func_85027_a(var5);

            throw new ReportedException(var4);
          }
        }

        if (var9.isInvalid()) {
          var14.remove();
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.