Class StrictNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.StrictNBTIngredient
Ingredient that matches the given stack, performing an exact NBT match. Use
PartialNBTIngredient
if you need partial match.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StrictNBTIngredient>
private final ItemStack
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, of, of, of, of, of, toJson, toNetwork
-
Field Details
-
CODEC
-
stack
-
-
Constructor Details
-
StrictNBTIngredient
-
-
Method Details
-
of
Creates a new ingredient matching the given stack and tag -
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
isSimple
public boolean isSimple()- Overrides:
isSimple
in classIngredient
-