TextureManager.java 文件源码

java
阅读 17 收藏 0 点赞 0 评论 0

项目:RuneCraftery 作者:
public boolean func_110579_a(ResourceLocation p_110579_1_, TextureObject p_110579_2_) {
   boolean var3 = true;

   try {
      ((TextureObject)p_110579_2_).func_110551_a(this.field_110582_d);
   } catch (IOException var8) {
      Minecraft.func_71410_x().func_98033_al().func_98235_b("Failed to load texture: " + p_110579_1_, var8);
      p_110579_2_ = TextureUtil.field_111001_a;
      this.field_110585_a.put(p_110579_1_, p_110579_2_);
      var3 = false;
   } catch (Throwable var9) {
      CrashReport var5 = CrashReport.func_85055_a(var9, "Registering texture");
      CrashReportCategory var6 = var5.func_85058_a("Resource location being registered");
      var6.func_71507_a("Resource location", p_110579_1_);
      var6.func_71500_a("Texture object class", new TextureManagerINNER1(this, (TextureObject)p_110579_2_));
      throw new ReportedException(var5);
   }

   this.field_110585_a.put(p_110579_1_, p_110579_2_);
   return var3;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号