Class MilkIngredient.Serializer

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

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

    • INSTANCE

      public static final MilkIngredient.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<MilkIngredient>
    • read

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

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

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