MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / drawImage

Method drawImage

src/main/java/images/AniIcon.java:58–69  ·  view source on GitHub ↗
(Graphics g, int x, int y)

Source from the content-addressed store, hash-verified

56 protected int width;
57
58 public void drawImage(Graphics g, int x, int y) {
59 int ho = g.getClipHeight();
60 int wo = g.getClipWidth();
61 int xo = g.getClipX();
62 int yo = g.getClipY();
63
64 int ix = x - width * frames[currentFrame];
65 g.clipRect(x, y, width, height);
66 g.drawImage(resImage, ix, y, Graphics.TOP|Graphics.LEFT);
67 g.setClip(xo, yo, wo, ho);
68 painted = true;
69 }
70
71 public int getHeight() {return height;}
72 public int getWidth() {return width;}

Callers

nothing calls this directly

Calls 6

getClipHeightMethod · 0.45
getClipWidthMethod · 0.45
getClipXMethod · 0.45
getClipYMethod · 0.45
clipRectMethod · 0.45
setClipMethod · 0.45

Tested by

no test coverage detected