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