接口 JsonSerializing.CustomSerializer<T>

    • 方法详细资料

      • toJson

        JsonElement toJson​(T object,
                           JsonSerializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldhm$b;a(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        intermediary method_29309 Lnet/minecraft/class_5330$class_5332;method_29309(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
        named toJson Lnet/minecraft/util/JsonSerializing$CustomSerializer;toJson(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      • fromJson

        T fromJson​(JsonElement json,
                   JsonDeserializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldhm$b;a(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
        intermediary method_29308 Lnet/minecraft/class_5330$class_5332;method_29308(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
        named fromJson Lnet/minecraft/util/JsonSerializing$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;