Support 26.1 (#368)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2026-03-25 23:10:09 +08:00
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();
}