接口 JsonSerializer<T>

    • 方法详细资料

      • toJson

        void toJson​(JsonObject json,
                    T object,
                    JsonSerializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldhv;a(Lcom/google/gson/JsonObject;Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)V
        intermediary method_516 Lnet/minecraft/class_5335;method_516(Lcom/google/gson/JsonObject;Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)V
        named toJson Lnet/minecraft/util/JsonSerializer;toJson(Lcom/google/gson/JsonObject;Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)V
      • fromJson

        T fromJson​(JsonObject json,
                   JsonDeserializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldhv;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
        intermediary method_517 Lnet/minecraft/class_5335;method_517(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
        named fromJson Lnet/minecraft/util/JsonSerializer;fromJson(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;