Package net.runelite.client.game
Class SpriteManager
- java.lang.Object
-
- net.runelite.client.game.SpriteManager
-
@Singleton public class SpriteManager extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSpriteOverrides(SpriteOverride[] add)
void
addSpriteTo(JButton c, int archive, int file)
Calls setIcon on c, ensuring it is repainted when this changesvoid
addSpriteTo(JLabel c, int archive, int file)
Calls setIcon on c, ensuring it is repainted when this changesBufferedImage
getSprite(int archive, int file)
void
getSpriteAsync(int archive, int file, Consumer<BufferedImage> user)
void
getSpriteAsync(int archive, int file, InfoBox infoBox)
void
removeSpriteOverrides(SpriteOverride[] remove)
-
-
-
Method Detail
-
getSprite
@Nullable public BufferedImage getSprite(int archive, int file)
-
getSpriteAsync
public void getSpriteAsync(int archive, int file, Consumer<BufferedImage> user)
-
getSpriteAsync
public void getSpriteAsync(int archive, int file, InfoBox infoBox)
-
addSpriteTo
public void addSpriteTo(JButton c, int archive, int file)
Calls setIcon on c, ensuring it is repainted when this changes
-
addSpriteTo
public void addSpriteTo(JLabel c, int archive, int file)
Calls setIcon on c, ensuring it is repainted when this changes
-
addSpriteOverrides
public void addSpriteOverrides(SpriteOverride[] add)
-
removeSpriteOverrides
public void removeSpriteOverrides(SpriteOverride[] remove)
-
-