Java 类net.minecraft.util.com.google.gson.JsonSerializationContext 实例源码

项目:Tweakkit-Server    文件:BanEntrySerializer.java   
public JsonElement a(UserCacheEntry usercacheentry, Type type, JsonSerializationContext jsonserializationcontext) {
    JsonObject jsonobject = new JsonObject();

    jsonobject.addProperty("name", usercacheentry.a().getName());
    UUID uuid = usercacheentry.a().getId();

    jsonobject.addProperty("uuid", uuid == null ? "" : uuid.toString());
    jsonobject.addProperty("expiresOn", UserCache.a.format(usercacheentry.b()));
    return jsonobject;
}
项目:CraftBukkit    文件:JsonListEntrySerializer.java   
public JsonElement a(JsonListEntry jsonlistentry, Type type, JsonSerializationContext jsonserializationcontext) {
    JsonObject jsonobject = new JsonObject();

    jsonlistentry.a(jsonobject);
    return jsonobject;
}
项目:CraftBukkit    文件:JsonListEntrySerializer.java   
public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
    return this.a((JsonListEntry) object, type, jsonserializationcontext);
}
项目:Tweakkit-Server    文件:BanEntrySerializer.java   
public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
    return this.a((UserCacheEntry) object, type, jsonserializationcontext);
}
项目:Tweakkit-Server    文件:JsonListEntrySerializer.java   
public JsonElement a(JsonListEntry jsonlistentry, Type type, JsonSerializationContext jsonserializationcontext) {
    JsonObject jsonobject = new JsonObject();

    jsonlistentry.a(jsonobject);
    return jsonobject;
}
项目:Tweakkit-Server    文件:JsonListEntrySerializer.java   
public JsonElement serialize(Object object, Type type, JsonSerializationContext jsonserializationcontext) {
    return this.a((JsonListEntry) object, type, jsonserializationcontext);
}