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
ConstructorsConstructorDescriptionFabricIngredient(T logic, Supplier<net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?>> type) -
Method Summary
Modifier and TypeMethodDescriptionList<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) booleanbooleantest(net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
toVanilla
-
Constructor Details
-
FabricIngredient
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack stack) - Specified by:
testin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
-
getMatchingStacks
- Specified by:
getMatchingStacksin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
-
requiresTesting
public boolean requiresTesting()- Specified by:
requiresTestingin interfacenet.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
-
getSerializer
public net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.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)
-