Class BitterballenDeepFryingRecipeDeserializer

java.lang.Object
petrolpark.mc.library.compat.bitterballen.BitterballenDeepFryingRecipeDeserializer
All Implemented Interfaces:
CompatRecipeDeserializer<BoilingRecipe>

public class BitterballenDeepFryingRecipeDeserializer extends Object implements CompatRecipeDeserializer<BoilingRecipe>
  • Field Details

    • SERIALIZER_ID

      public static final net.minecraft.resources.ResourceLocation SERIALIZER_ID
    • DECODER

      public static final com.mojang.serialization.Decoder<Optional<BoilingRecipe>> DECODER
  • Constructor Details

    • BitterballenDeepFryingRecipeDeserializer

      public BitterballenDeepFryingRecipeDeserializer()
  • Method Details

    • serializerId

      public net.minecraft.resources.ResourceLocation serializerId()
      Description copied from interface: CompatRecipeDeserializer
      The ID of the other mod's Recipe Serializer that this CompatRecipeDeserializer should emulate.
      Specified by:
      serializerId in interface CompatRecipeDeserializer<BoilingRecipe>
    • decoder

      public com.mojang.serialization.Decoder<Optional<BoilingRecipe>> decoder()
      Description copied from interface: CompatRecipeDeserializer
      Decoder that should emulate the Codec used by the other mod's Recipe Serializer. This Decoder should return a DataResult.error(java.util.function.Supplier<java.lang.String>, R) if there is a formatting issue with the Recipe, but a DataResult.success(R) containing an empty Optional if there is nothing unexpected with the JSON but it cannot be converted (for example, if the other mod's Recipe may optionally include Fluids but your Recipe cannot).
      Specified by:
      decoder in interface CompatRecipeDeserializer<BoilingRecipe>
    • createId

      public net.minecraft.resources.ResourceLocation createId(net.minecraft.resources.ResourceLocation baseId)
      Specified by:
      createId in interface CompatRecipeDeserializer<BoilingRecipe>