Class EmptyIngredient.Serializer

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

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

    • INSTANCE

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

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

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

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