Class SpriteFactory
- java.lang.Object
-
- com.github.alex1304.jdash.graphics.SpriteFactory
-
public class SpriteFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description SpriteFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpriteFactory
create()
Creates a new sprite factory.BufferedImage
makeSprite(IconType type, int id, int color1Id, int color2Id, boolean withGlowOutline)
String
toString()
-
-
-
Method Detail
-
makeSprite
public BufferedImage makeSprite(IconType type, int id, int color1Id, int color2Id, boolean withGlowOutline)
-
create
public static SpriteFactory create() throws SpriteLoadException
Creates a new sprite factory. This method will load the sprite images in memory, that's why anIOException
needs to be checked when calling this method.- Returns:
- the sprite factory
- Throws:
SpriteLoadException
- if something goes wrong when loading the sprites.
-
-