Class StrictNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.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>
static final IIngredientSerializer<StrictNBTIngredient>
private final ItemStack
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY, VANILLA_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isSimple()
static StrictNBTIngredient
IIngredientSerializer<? extends Ingredient>
boolean
Methods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
fromNetwork, fromValues, of, of, of, of, of
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, toNetwork, toString
-
Field Details
-
stack
-
CODEC
-
SERIALIZER
-
-
Constructor Details
-
StrictNBTIngredient
-
-
Method Details
-
of
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimple
in classAbstractIngredient
-
serializer
- Specified by:
serializer
in classAbstractIngredient
-