Package net.minecraft.loot
Class LootTable.Serializer
java.lang.Object
net.minecraft.loot.LootTable.Serializer
- All Implemented Interfaces:
JsonDeserializer<LootTable>
,JsonSerializer<LootTable>
- Enclosing class:
- LootTable
public static class LootTable.Serializer extends Object implements JsonDeserializer<LootTable>, JsonSerializer<LootTable>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description LootTable
deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
JsonElement
serialize(LootTable lootTable, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public LootTable deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException- Specified by:
deserialize
in interfaceJsonDeserializer<LootTable>
- Throws:
JsonParseException
-
serialize
public JsonElement serialize(LootTable lootTable, Type type, JsonSerializationContext jsonSerializationContext)- Specified by:
serialize
in interfaceJsonSerializer<LootTable>
-