public abstract class SpongeResourcePack extends Object implements org.spongepowered.api.resourcepack.ResourcePack
Modifier and Type | Field and Description |
---|---|
static int |
HASH_SIZE |
Constructor and Description |
---|
SpongeResourcePack(String hash) |
Modifier and Type | Method and Description |
---|---|
static SpongeResourcePack |
create(String uri,
String hash) |
static SpongeResourcePack |
create(URI uri,
String hash) |
Optional<String> |
getHash() |
String |
getId() |
abstract String |
getUrlString() |
public static final int HASH_SIZE
public abstract String getUrlString()
public String getId()
getId
in interface org.spongepowered.api.resourcepack.ResourcePack
public Optional<String> getHash()
getHash
in interface org.spongepowered.api.resourcepack.ResourcePack
public static SpongeResourcePack create(String uri, String hash) throws URISyntaxException
URISyntaxException
public static SpongeResourcePack create(URI uri, String hash)