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 Details

    • InlineSerializer

      public InlineSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(FromArrayIngredientRandomizer value, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface net.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>
    • deserialize

      public FromArrayIngredientRandomizer deserialize(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext context)
      Specified by:
      deserialize in interface net.minecraft.world.level.storage.loot.GsonAdapterFactory.InlineSerializer<FromArrayIngredientRandomizer>