Package de.cech12.bucketlib.api.crafting
Class FluidIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
de.cech12.bucketlib.api.crafting.FluidIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class FluidIngredient
extends net.minecraft.world.item.crafting.Ingredient
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<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>Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY -
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 net.minecraft.world.item.crafting.Ingredient
areStacksEqual, equals, fromJson, fromNetwork, fromValues, getStackingIds, getType, getValues, of, of, of, of, of, synchronizeWithContents, toNetwork
-
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(net.minecraft.world.item.ItemStack itemStack) -
getItems
@Nonnull public net.minecraft.world.item.ItemStack[] getItems()- Overrides:
getItemsin classnet.minecraft.world.item.crafting.Ingredient
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classnet.minecraft.world.item.crafting.Ingredient
-
isSimple
public boolean isSimple()- Overrides:
isSimplein classnet.minecraft.world.item.crafting.Ingredient
-