public interface JsonResourceDeserializer<T> extends ResourceDeserializer<T>
| Modifier and Type | Method and Description |
|---|---|
default T |
deserialize(java.io.InputStream input,
net.kyori.adventure.key.Key key) |
T |
deserializeFromJson(com.google.gson.JsonElement node,
net.kyori.adventure.key.Key key) |
default T |
deserializeFromJsonString(java.lang.String json,
net.kyori.adventure.key.Key key) |
deserializeT deserializeFromJson(com.google.gson.JsonElement node, net.kyori.adventure.key.Key key) throws java.io.IOException
java.io.IOExceptiondefault T deserializeFromJsonString(@Language(value="JSON") java.lang.String json, net.kyori.adventure.key.Key key) throws java.io.IOException
java.io.IOExceptiondefault T deserialize(java.io.InputStream input, net.kyori.adventure.key.Key key) throws java.io.IOException
deserialize in interface ResourceDeserializer<T>java.io.IOException