public class MapResourcePackDirectoryArchive extends java.lang.Object implements MapResourcePackArchive
Constructor and Description |
---|
MapResourcePackDirectoryArchive(java.io.File directory) |
Modifier and Type | Method and Description |
---|---|
void |
load(boolean lazy)
Loads the resource pack archive, making it available for use
|
java.io.InputStream |
openFileStream(java.lang.String path)
Attempts to find and open an input stream for a file inside the archive
|
public MapResourcePackDirectoryArchive(java.io.File directory)
public void load(boolean lazy)
MapResourcePackArchive
load
in interface MapResourcePackArchive
lazy
- whether this is a lazy-load call. Allows logging of warnings if it can take a while.public java.io.InputStream openFileStream(java.lang.String path) throws java.io.IOException
MapResourcePackArchive
openFileStream
in interface MapResourcePackArchive
path
- of the file (relative)java.io.IOException
- when an error occurs trying to access the file