(ResourceLocation resLoc)
| 398 | } |
| 399 | |
| 400 | public static BufferedImage readImage(ResourceLocation resLoc) |
| 401 | { |
| 402 | try |
| 403 | { |
| 404 | if (!Config.hasResource(resLoc)) |
| 405 | { |
| 406 | return null; |
| 407 | } |
| 408 | else |
| 409 | { |
| 410 | InputStream inputstream = Config.getResourceStream(resLoc); |
| 411 | |
| 412 | if (inputstream == null) |
| 413 | { |
| 414 | return null; |
| 415 | } |
| 416 | else |
| 417 | { |
| 418 | BufferedImage bufferedimage = ImageIO.read(inputstream); |
| 419 | inputstream.close(); |
| 420 | return bufferedimage; |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | catch (IOException var3) |
| 425 | { |
| 426 | return null; |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | public static int[][] genMipmapsSimple(int maxLevel, int width, int[][] data) |
| 431 | { |
no test coverage detected