Package de.cech12.bucketlib.api.crafting
Class FluidIngredient
java.lang.Object
de.cech12.bucketlib.api.crafting.FluidIngredient
- All Implemented Interfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient
public class FluidIngredient
extends Object
implements net.neoforged.neoforge.common.crafting.ICustomIngredient
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FluidIngredient> protected final net.minecraft.world.level.material.Fluidprotected final net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> static final net.neoforged.neoforge.common.crafting.IngredientType<FluidIngredient> -
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.neoforged.neoforge.common.crafting.ICustomIngredient
display, 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 -
CODEC
-
TYPE
-
-
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(@Nonnull net.minecraft.world.item.ItemStack itemStack) - Specified by:
testin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
items
- Specified by:
itemsin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getType
@Nonnull public net.neoforged.neoforge.common.crafting.IngredientType<?> getType()- Specified by:
getTypein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-