Package com.igrium.videolib.util
Class IdentifierGson
java.lang.Object
com.google.gson.TypeAdapter<net.minecraft.util.Identifier>
com.igrium.videolib.util.IdentifierGson
public class IdentifierGson
extends com.google.gson.TypeAdapter<net.minecraft.util.Identifier>
A simple Gson type adapter for identifiers. (I don't get why Mojang doesn't
have a default one.)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
IdentifierGson
public IdentifierGson()
-
-
Method Details
-
read
public net.minecraft.util.Identifier read(com.google.gson.stream.JsonReader reader) throws IOException - Specified by:
read
in classcom.google.gson.TypeAdapter<net.minecraft.util.Identifier>
- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter writer, net.minecraft.util.Identifier val) throws IOException - Specified by:
write
in classcom.google.gson.TypeAdapter<net.minecraft.util.Identifier>
- Throws:
IOException
-