Class ContextLootScoreProvider.CustomSerializer
java.lang.Object
net.minecraft.loot.provider.score.ContextLootScoreProvider.CustomSerializer
- All Implemented Interfaces:
JsonSerializing.CustomSerializer<ContextLootScoreProvider>
- Enclosing class:
- ContextLootScoreProvider
public static class ContextLootScoreProvider.CustomSerializer extends Object implements JsonSerializing.CustomSerializer<ContextLootScoreProvider>
- Mappings:
Namespace Name official dia$aintermediary net/minecraft/class_5664$class_5665named net/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer
-
Constructor Summary
Constructors Constructor Description CustomSerializer() -
Method Summary
Modifier and Type Method Description ContextLootScoreProviderfromJson(JsonElement jsonElement, JsonDeserializationContext jsonDeserializationContext)JsonElementtoJson(ContextLootScoreProvider contextLootScoreProvider, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
CustomSerializer
public CustomSerializer()
-
-
Method Details
-
toJson
public JsonElement toJson(ContextLootScoreProvider contextLootScoreProvider, JsonSerializationContext jsonSerializationContext)- Specified by:
toJsonin interfaceJsonSerializing.CustomSerializer<ContextLootScoreProvider>- Mappings:
Namespace Name Mixin selector official aLdia$a;a(Ldia;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;intermediary method_32468Lnet/minecraft/class_5664$class_5665;method_32468(Lnet/minecraft/class_5664;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer;toJson(Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-
fromJson
public ContextLootScoreProvider fromJson(JsonElement jsonElement, JsonDeserializationContext jsonDeserializationContext)- Specified by:
fromJsonin interfaceJsonSerializing.CustomSerializer<ContextLootScoreProvider>- Mappings:
Namespace Name Mixin selector official bLdia$a;b(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Ldia;intermediary method_32469Lnet/minecraft/class_5664$class_5665;method_32469(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_5664;named fromJsonLnet/minecraft/loot/provider/score/ContextLootScoreProvider$CustomSerializer;fromJson(Lcom/google/gson/JsonElement;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/provider/score/ContextLootScoreProvider;
-