mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 04:04:25 +00:00
Remove: all vanilla editions
This commit is contained in:
1 parent
c2dad72690
commit
755f7647ed
136 files changed
+113
-1355
No files matched your search
@@ -0,0 +1,61 @@
|
||||
package customskinloader.fake.texture;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import net.minecraft.client.renderer.texture.NativeImage;
|
||||
|
||||
public class FakeNativeImage implements FakeImage {
|
||||
private NativeImage image;
|
||||
|
||||
public FakeNativeImage(int width, int height) {
|
||||
this(new NativeImage(width, height, true));
|
||||
}
|
||||
|
||||
public FakeNativeImage(NativeImage image) {
|
||||
this.image = image;
|
||||
}
|
||||
|
||||
public NativeImage getImage() {
|
||||
return image;
|
||||
}
|
||||
|
||||
public FakeImage createImage(int width, int height) {
|
||||
return new FakeNativeImage(width, height);
|
||||
}
|
||||
|
||||
public FakeImage createImage(InputStream is) {
|
||||
return new FakeNativeImage(NativeImage.func_195713_a(is));
|
||||
}
|
||||
|
||||
public int getWidth() {
|
||||
return image.func_195702_a();
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
return image.func_195714_b();
|
||||
}
|
||||
|
||||
public int getRGBA(int x, int y) {
|
||||
return image.func_195709_a(x, y);
|
||||
}
|
||||
|
||||
public void setRGBA(int x, int y, int rgba) {
|
||||
image.func_195700_a(x, y, rgba);
|
||||
}
|
||||
|
||||
public void copyImageData(FakeImage image) {
|
||||
if (!(image instanceof FakeNativeImage)) return;
|
||||
this.image.func_195703_a(((FakeNativeImage) image).getImage());
|
||||
}
|
||||
|
||||
public void fillArea(int x0, int y0, int width, int height) {
|
||||
image.func_195715_a(x0, y0, width, height, 0);
|
||||
}
|
||||
|
||||
public void copyArea(int x0, int y0, int dx, int dy, int width, int height, boolean reversex, boolean reversey) {
|
||||
image.func_195699_a(x0, y0, dx, dy, width, height, reversex, reversey);
|
||||
}
|
||||
|
||||
public void close() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user