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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user