This commit is contained in:
ZekerZhayard authored and GitHub committed 2026-05-21 11:31:52 +08:00
1 parent faebfc9bb1
commit 8b5d440ed7
287 files changed
+6431 -6792

No files matched your search

@@ -2,21 +2,19 @@ package customskinloader.fake.itf;
import java.io.InputStream;
import net.minecraft.client.resources.IResource;
import net.minecraft.server.packs.resources.Resource;
/** {@link IResource} is no longer an interface since 22w14a */
/** {@link Resource} is no longer an interface since 22w14a */
public interface IFakeIResource {
// 1.13.2 ~ 22w13a
// 22w13a- (1.18.2-)
interface V1 {
default InputStream func_199027_b() {
return ((IResource) this).getInputStream();
}
InputStream getInputStream();
}
// 22w14a+
// 22w14a+ (1.19+)
interface V2 {
default InputStream open() {
return ((IFakeIResource.V1) this).func_199027_b();
return ((IFakeIResource.V1) this).getInputStream();
}
}
}