Package net.minecraft.loot
Class LootPool.Serializer
java.lang.Object
net.minecraft.loot.LootPool.Serializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<LootPool>,com.google.gson.JsonSerializer<LootPool>
- Enclosing class:
- LootPool
public static class LootPool.Serializer extends Object implements com.google.gson.JsonDeserializer<LootPool>, com.google.gson.JsonSerializer<LootPool>
- Mappings:
Namespace Name official dhp$bintermediary net/minecraft/class_55$class_57named net/minecraft/loot/LootPool$Serializer
-
Constructor Summary
Constructors Constructor Description Serializer() -
Method Summary
Modifier and Type Method Description LootPooldeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(LootPool lootPool, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public LootPool deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<LootPool>- Throws:
com.google.gson.JsonParseException- Mappings:
Namespace Name Mixin selector official aLdhp$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ldhp;intermediary method_358Lnet/minecraft/class_55$class_57;method_358(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_55;named deserializeLnet/minecraft/loot/LootPool$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/LootPool;
-
serialize
public com.google.gson.JsonElement serialize(LootPool lootPool, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<LootPool>- Mappings:
Namespace Name Mixin selector official aLdhp$b;a(Ldhp;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;intermediary method_357Lnet/minecraft/class_55$class_57;method_357(Lnet/minecraft/class_55;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;named serializeLnet/minecraft/loot/LootPool$Serializer;serialize(Lnet/minecraft/loot/LootPool;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-