* 1.21.4

* Disable making the source jar.
This commit is contained in:
ZekerZhayard authored and GitHub committed 2024-12-23 21:43:38 +08:00
1 parent a9b2484b3e
commit 1cb4cf40b0
93 files changed
+762 -181

No files matched your search

@@ -1,6 +1,5 @@
package customskinloader.fake.itf;
import java.io.IOException;
import java.util.Optional;
import net.minecraft.client.resources.IResourceManager;
@@ -9,12 +8,12 @@ import net.minecraft.util.ResourceLocation;
public interface IFakeIResourceManager {
// 1.13.2 ~ 22w13a
default IResource func_199002_a(ResourceLocation location) throws IOException {
default IResource func_199002_a(ResourceLocation location) {
return (IResource) ((IResourceManager) this).getResource(location);
}
// 22w14a+
default Optional getResource(ResourceLocation location) throws IOException {
default Optional getResource(ResourceLocation location) {
return Optional.ofNullable(this.func_199002_a(location));
}
}