Class EntityIngredient.Serializer

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

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

    • INSTANCE

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

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

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

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