public class ResourcePack
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.io.File |
folder
The base folder of the resource pack, which must contain a pack.mcmeta file.
|
Constructor and Description |
---|
ResourcePack(java.io.File folder) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<PackFormat,java.io.File> |
pack(java.io.File outputFolder)
Creates a version of a resource pack for each pack format.
|
java.util.Map<PackFormat,java.io.File> |
pack(java.io.File outputFolder,
java.util.List<PackFormat> outputFormats)
Creates a version of a resource pack for each given pack format.
|
java.io.File |
pack(java.io.File outputFolder,
PackFormat outputFormat)
Creates a version of a resource pack for the given pack format.
|
public final java.io.File folder
public ResourcePack(java.io.File folder)
folder
- The base folder of the resource pack, which must contain a pack.mcmeta file.public java.util.Map<PackFormat,java.io.File> pack(java.io.File outputFolder) throws java.io.IOException
outputFolder
- The folder where the zips should be generated in.java.io.IOException
- When there are some unexpected errors with the file system.public java.io.File pack(java.io.File outputFolder, PackFormat outputFormat) throws java.io.IOException
outputFolder
- The folder where the zips should be generated in.java.io.IOException
- When there are some unexpected errors with the file system.public java.util.Map<PackFormat,java.io.File> pack(java.io.File outputFolder, java.util.List<PackFormat> outputFormats) throws java.io.IOException
outputFolder
- The folder where the zips should be generated in.outputFormats
- An array of versions you'd like to the resource pack to be compatible with.java.io.IOException
- When there are some unexpected errors with the file system.