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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<StrictNBTIngredient> static final IIngredientSerializer<StrictNBTIngredient> private final ItemStackFields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, CONTENTS_STREAM_CODEC, EMPTY, VANILLA_CODEC, VANILLA_MAP_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSimple()static StrictNBTIngredientIIngredientSerializer<? extends Ingredient> booleanMethods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, toString
-
Field Details
-
stack
-
CODEC
-
SERIALIZER
-
-
Constructor Details
-
StrictNBTIngredient
-
-
Method Details
-
of
-
test
- Specified by:
testin interfacePredicate<ItemStack>- Overrides:
testin classIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein classAbstractIngredient
-
serializer
- Specified by:
serializerin classAbstractIngredient
-