Class FluidIngredient.Serializer

java.lang.Object
de.cech12.bucketlib.api.crafting.FluidIngredient.Serializer
All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
Enclosing class:
FluidIngredient

public static final class FluidIngredient.Serializer extends Object implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
  • Field Details

    • INSTANCE

      public static final FluidIngredient.Serializer INSTANCE
    • NAME

      public static final net.minecraft.resources.ResourceLocation NAME
  • Method Details

    • getIdentifier

      public net.minecraft.resources.ResourceLocation getIdentifier()
      Specified by:
      getIdentifier in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
    • getCodec

      public com.mojang.serialization.MapCodec<FluidIngredient> getCodec(boolean allowEmpty)
      Specified by:
      getCodec in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
    • getPacketCodec

      public net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,FluidIngredient> getPacketCodec()
      Specified by:
      getPacketCodec in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>