Class FabricIngredient<T extends IngredientLogic<T>>

java.lang.Object
net.darkhax.bookshelf.fabric.impl.data.FabricIngredient<T>
All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient

public class FabricIngredient<T extends IngredientLogic<T>> extends Object implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
  • Constructor Summary

    Constructors
    Constructor
    Description
    FabricIngredient(T logic, Supplier<net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?>> type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.item.ItemStack>
     
    net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?>
     
    static <T extends IngredientLogic<T>>
    net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FabricIngredient<T>>
    make(net.minecraft.resources.ResourceLocation id, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,T> stream)
     
    boolean
     
    boolean
    test(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient

    toVanilla
  • Constructor Details

    • FabricIngredient

      public FabricIngredient(T logic, Supplier<net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?>> type)
  • Method Details

    • test

      public boolean test(net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • getMatchingStacks

      public List<net.minecraft.world.item.ItemStack> getMatchingStacks()
      Specified by:
      getMatchingStacks in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • requiresTesting

      public boolean requiresTesting()
      Specified by:
      requiresTesting in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • getSerializer

      public net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • make

      public static <T extends IngredientLogic<T>> net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<FabricIngredient<T>> make(net.minecraft.resources.ResourceLocation id, com.mojang.serialization.MapCodec<T> codec, net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,T> stream)