接口 JsonSerializing.CustomSerializer<T>
-
- 所有已知实现类:
ConstantLootNumberProvider.CustomSerializer,ContextLootNbtProvider.CustomSerializer,ContextLootScoreProvider.CustomSerializer
- 封闭类:
- JsonSerializing
public static interface JsonSerializing.CustomSerializer<T>- Mappings:
Namespace Name official dhm$bintermediary net/minecraft/class_5330$class_5332named net/minecraft/util/JsonSerializing$CustomSerializer
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 TfromJson(JsonElement json, JsonDeserializationContext context)JsonElementtoJson(T object, JsonSerializationContext context)
-
-
-
方法详细资料
-
toJson
JsonElement toJson(T object, JsonSerializationContext context)
- Mappings:
Namespace Name Mixin selector official aLdhm$b;a(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;intermediary method_29309Lnet/minecraft/class_5330$class_5332;method_29309(Ljava/lang/Object;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;named toJsonLnet/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 aLdhm$b;a(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;intermediary method_29308Lnet/minecraft/class_5330$class_5332;method_29308(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;named fromJsonLnet/minecraft/util/JsonSerializing$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
-
-