MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / loadDynamicImage

Method loadDynamicImage

Minecraft-Utils/1.13/src/Variables.java:1108–1118  ·  view source on GitHub ↗
(String name, BufferedImage image)

Source from the content-addressed store, hash-verified

1106 }
1107
1108 @Override
1109 public Object loadDynamicImage(String name, BufferedImage image) {
1110 try {
1111 ByteArrayOutputStream os = new ByteArrayOutputStream();
1112 ImageIO.write(image, "png", os);
1113 InputStream in = new ByteArrayInputStream(os.toByteArray());
1114 return getTextureManager().a(name, new dcr(dcw.a(in)));
1115 } catch (IOException e) {
1116 throw new RuntimeException(e);
1117 }
1118 }
1119
1120 @Override
1121 public void bindTexture(Object resourceLocation) {

Callers

nothing calls this directly

Calls 3

getTextureManagerMethod · 0.95
writeMethod · 0.65
aMethod · 0.45

Tested by

no test coverage detected