Class SpriteManager


  • @Singleton
    public class SpriteManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSpriteOverrides​(SpriteOverride[] add)  
      void addSpriteTo​(javax.swing.JButton c, int archive, int file)
      Calls setIcon on c, ensuring it is repainted when this changes
      void addSpriteTo​(javax.swing.JLabel c, int archive, int file)
      Calls setIcon on c, ensuring it is repainted when this changes
      java.awt.image.BufferedImage getSprite​(int archive, int file)  
      void getSpriteAsync​(int archive, int file, java.util.function.Consumer<java.awt.image.BufferedImage> user)  
      void getSpriteAsync​(int archive, int file, InfoBox infoBox)  
      void removeSpriteOverrides​(SpriteOverride[] remove)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSprite

        @Nullable
        public java.awt.image.BufferedImage getSprite​(int archive,
                                                      int file)
      • getSpriteAsync

        public void getSpriteAsync​(int archive,
                                   int file,
                                   java.util.function.Consumer<java.awt.image.BufferedImage> user)
      • getSpriteAsync

        public void getSpriteAsync​(int archive,
                                   int file,
                                   InfoBox infoBox)
      • addSpriteTo

        public void addSpriteTo​(javax.swing.JButton c,
                                int archive,
                                int file)
        Calls setIcon on c, ensuring it is repainted when this changes
      • addSpriteTo

        public void addSpriteTo​(javax.swing.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)