Class MojangProfileResolver.ProfilePropertyTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<ProfileProperty>
com.github.juliarn.npclib.api.profile.MojangProfileResolver.ProfilePropertyTypeAdapter
- Enclosing class:
MojangProfileResolver
private static final class MojangProfileResolver.ProfilePropertyTypeAdapter
extends com.google.gson.TypeAdapter<ProfileProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ProfilePropertyread(@NotNull com.google.gson.stream.JsonReader in) voidwrite(@NotNull com.google.gson.stream.JsonWriter out, @Nullable ProfileProperty property) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ProfilePropertyTypeAdapter
private ProfilePropertyTypeAdapter()
-
-
Method Details
-
write
public void write(@NotNull @NotNull com.google.gson.stream.JsonWriter out, @Nullable @Nullable ProfileProperty property) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<ProfileProperty>- Throws:
IOException
-
read
@Nullable public @Nullable ProfileProperty read(@NotNull @NotNull com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<ProfileProperty>- Throws:
IOException
-