Class FromArrayIngredientRandomizer.InlineSerializer
java.lang.Object
com.petrolpark.recipe.ingredient.randomizer.FromArrayIngredientRandomizer.InlineSerializer
- All Implemented Interfaces:
net.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>
- Enclosing class:
- FromArrayIngredientRandomizer
public static class FromArrayIngredientRandomizer.InlineSerializer
extends Object
implements net.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementserialize(FromArrayIngredientRandomizer value, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
InlineSerializer
public InlineSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(FromArrayIngredientRandomizer value, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacenet.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>
-
deserialize
public FromArrayIngredientRandomizer deserialize(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext context) - Specified by:
deserializein interfacenet.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>
-