Package de.cech12.bucketlib.api.crafting
Class FluidIngredient
java.lang.Object
de.cech12.bucketlib.api.crafting.FluidIngredient
- All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
public class FluidIngredient
extends Object
implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFluidIngredient(Optional<net.minecraft.resources.ResourceLocation> fluidOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>> tagOptional) FluidIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) FluidIngredient(net.minecraft.world.level.material.Fluid fluid) -
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
-
fluid
protected final net.minecraft.world.level.material.Fluid fluid -
tag
protected final net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag
-
-
Constructor Details
-
FluidIngredient
-
FluidIngredient
public FluidIngredient(net.minecraft.world.level.material.Fluid fluid) -
FluidIngredient
public FluidIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> 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
-