/* * Decompiled with CFR 0.152. */ package net.minecraft.server.packs.resources; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.OpenOption; import java.nio.file.Path; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @FunctionalInterface public interface IoSupplier { public static IoSupplier create(Path path) { return () -> Files.newInputStream(path, new OpenOption[0]); } public static IoSupplier create(ZipFile zipFile, ZipEntry entry) { return () -> zipFile.getInputStream(entry); } public T get() throws IOException; }