Allow ItemManager to be ran off the client thread

This allows the ItemManager to return a blank BufferedImage if it's not called on the client thread. This also makes it not render the image until the cache has been downloaded
This commit is contained in:
Max Weber
2018-04-11 03:39:28 -06:00
parent d680c91c19
commit b3fa9a5e49
4 changed files with 146 additions and 14 deletions

View File

@@ -44,4 +44,11 @@ public interface SpritePixels
* @return
*/
BufferedImage toBufferedImage();
/**
* Writes the contents of the SpritePixels to the BufferedImage.
* Width and Height must match
*/
void toBufferedImage(BufferedImage img);
}