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>
    • read

      public FluidIngredient read(net.minecraft.network.FriendlyByteBuf buffer)
      Specified by:
      read in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
    • write

      public void write(@Nonnull net.minecraft.network.FriendlyByteBuf buffer, @Nonnull FluidIngredient ingredient)
      Specified by:
      write in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FluidIngredient>
    • getCodec

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