MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / readImage

Method readImage

src/main/java/net/optifine/shaders/ShadersTex.java:400–428  ·  view source on GitHub ↗
(ResourceLocation resLoc)

Source from the content-addressed store, hash-verified

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 {

Callers 1

readImageAndMipmapsMethod · 0.95

Calls 4

hasResourceMethod · 0.95
getResourceStreamMethod · 0.95
closeMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected