mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-26 08:02:59 +00:00
Support 1.21.9. (#347)
This commit is contained in:
1 parent
1fbe258365
commit
1f3d19ac6e
60 files changed
+635
-722
No files matched your search
@@ -10,6 +10,7 @@ import javax.imageio.ImageIO;
|
||||
public class FakeBufferedImage implements FakeImage {
|
||||
private BufferedImage image;
|
||||
private Graphics graphics;
|
||||
private int ratio;
|
||||
|
||||
public FakeBufferedImage(int width, int height) {
|
||||
this(new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB));
|
||||
@@ -33,6 +34,16 @@ public class FakeBufferedImage implements FakeImage {
|
||||
return new FakeBufferedImage(ImageIO.read(is));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRatio() {
|
||||
return this.ratio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRatio(int ratio) {
|
||||
this.ratio = ratio;
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
return image.getWidth();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user