public class ZipPackLoader extends Object implements PackLoader
PackLoader.Factory| Modifier and Type | Field and Description |
|---|---|
static PackLoader.Factory |
FACTORY |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
forEachIn(Path path,
Consumer<Path> consumer,
boolean recurse) |
InputStream |
getAsset(Path path) |
Path |
getLocation() |
CompletableFuture<Path> |
getNetworkPreparedFile() |
boolean |
hasAsset(Path path) |
boolean |
hasFolder(Path folder) |
public static final PackLoader.Factory FACTORY
public Path getLocation()
getLocation in interface PackLoaderpublic boolean hasAsset(Path path)
hasAsset in interface PackLoader@Nullable public InputStream getAsset(Path path) throws IOException
getAsset in interface PackLoaderIOExceptionpublic boolean hasFolder(Path folder)
hasFolder in interface PackLoaderpublic void forEachIn(Path path, Consumer<Path> consumer, boolean recurse)
forEachIn in interface PackLoaderpublic CompletableFuture<Path> getNetworkPreparedFile()
getNetworkPreparedFile in interface PackLoaderpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.