public interface ResourcePack
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getHash()
If this resource pack was initialized through
ResourcePackFactory.fromUrl(URL) , the hash, as calculated with
com.google.common.hash.Hashing.sha1().hashBytes(com.google.common.io.Files.toByteArray(resourcepackfile)).toString(); |
String |
getId()
Gets the ID of this resource pack.
|
String |
getName()
Gets the name of this resource pack.
|
URL |
getUrl()
Gets the URL associated with this ResourcePack.
|
URL getUrl()
String getName()
String getId()
Optional<String> getHash()
ResourcePackFactory.fromUrl(URL)
, the hash, as calculated with
com.google.common.hash.Hashing.sha1().hashBytes(com.google.common.io.Files.toByteArray(resourcepackfile)).toString();