public final class ResourcePacks extends Object
ResourcePack
s.Constructor and Description |
---|
ResourcePacks() |
Modifier and Type | Method and Description |
---|---|
static ResourcePack |
fromUrl(URL url)
Creates a
ResourcePack from a URL and tries to download and hash
it. |
static ResourcePack |
fromUrlUnchecked(URL url)
Creates a
ResourcePack from a URL, without checking ("unchecked")
if there is a valid pack at the URL. |
public static ResourcePack fromUrl(URL url) throws FileNotFoundException
ResourcePack
from a URL and tries to download and hash
it.url
- The URL to look inFileNotFoundException
- If a valid resourcepack could not be
downloaded from the URLpublic static ResourcePack fromUrlUnchecked(URL url)
ResourcePack
from a URL, without checking ("unchecked")
if there is a valid pack at the URL.url
- The URL to look in