Class BnCFermentingRecipeDeserializer
java.lang.Object
com.petrolpark.compat.brewinandchewin.BnCFermentingRecipeDeserializer
- All Implemented Interfaces:
CompatRecipeDeserializer<LiddedBasinRecipe>
public class BnCFermentingRecipeDeserializer
extends Object
implements CompatRecipeDeserializer<LiddedBasinRecipe>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Decoder<Optional<LiddedBasinRecipe>> static final net.minecraft.resources.ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationcreateId(net.minecraft.resources.ResourceLocation baseId) com.mojang.serialization.Decoder<Optional<LiddedBasinRecipe>> decoder()Decoder that should emulate the Codec used by the other mod'sRecipe Serializer.net.minecraft.resources.ResourceLocationThe ID of the other mod'sRecipe Serializerthat thisCompatRecipeDeserializershould emulate.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.petrolpark.core.recipe.compat.CompatRecipeDeserializer
shouldDeserialize
-
Field Details
-
SERIALIZER_ID
public static final net.minecraft.resources.ResourceLocation SERIALIZER_ID -
DECODER
-
-
Constructor Details
-
BnCFermentingRecipeDeserializer
public BnCFermentingRecipeDeserializer()
-
-
Method Details
-
serializerId
public net.minecraft.resources.ResourceLocation serializerId()Description copied from interface:CompatRecipeDeserializerThe ID of the other mod'sRecipe Serializerthat thisCompatRecipeDeserializershould emulate.- Specified by:
serializerIdin interfaceCompatRecipeDeserializer<LiddedBasinRecipe>
-
decoder
Description copied from interface:CompatRecipeDeserializerDecoder that should emulate the Codec used by the other mod'sRecipe Serializer. This Decoder should return aDataResult.error(java.util.function.Supplier<java.lang.String>, R)if there is a formatting issue with the Recipe, but aDataResult.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:
decoderin interfaceCompatRecipeDeserializer<LiddedBasinRecipe>
-
createId
public net.minecraft.resources.ResourceLocation createId(net.minecraft.resources.ResourceLocation baseId) - Specified by:
createIdin interfaceCompatRecipeDeserializer<LiddedBasinRecipe>
-
toString
-