mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 04:04:25 +00:00
Support 26.1 (#368)
This commit is contained in:
1 parent
08033b0502
commit
faebfc9bb1
26 files changed
+84
-32
No files matched your search
@@ -4,6 +4,7 @@ import java.io.InputStream;
|
||||
import java.util.Optional;
|
||||
|
||||
import customskinloader.fake.FakeMinecraftProfileTexture;
|
||||
import customskinloader.fake.texture.FakeNativeImage;
|
||||
import net.minecraft.client.resources.IResource;
|
||||
import net.minecraft.client.resources.IResourceManager;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -32,6 +33,14 @@ public class FakeInterfaceManager {
|
||||
((IFakeNativeImage) nativeImage).setPixel(x, y, color);
|
||||
}
|
||||
|
||||
public static FakeNativeImage NativeImage_getFakeImage(Object nativeImage) {
|
||||
return ((IFakeNativeImage) nativeImage).getFakeImage();
|
||||
}
|
||||
|
||||
public static void NativeImage_setFakeImage(Object nativeImage, Object fakeImage) {
|
||||
((IFakeNativeImage) nativeImage).setFakeImage((FakeNativeImage) fakeImage);
|
||||
}
|
||||
|
||||
public static FakeMinecraftProfileTexture ResourceLocation_getTexture(Object location) {
|
||||
return ((IFakeResourceLocation) location).getTexture();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user