Package de.cech12.bucketlib.api.crafting
Class BlockIngredient
java.lang.Object
de.cech12.bucketlib.api.crafting.BlockIngredient
- All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
public class BlockIngredient
extends Object
implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockIngredient(Optional<net.minecraft.resources.ResourceLocation> blockOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> tagOptional) BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) BlockIngredient(net.minecraft.world.level.block.Block block) -
Method Summary
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
-
Field Details
-
block
protected final net.minecraft.world.level.block.Block block -
tag
protected final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag
-
-
Constructor Details
-
BlockIngredient
-
BlockIngredient
public BlockIngredient(net.minecraft.world.level.block.Block block) -
BlockIngredient
public BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack itemStack) - 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
-