Class StrictNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
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
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIIngredientSerializer<? extends Ingredient>
boolean
isSimple()
static StrictNBTIngredient
Creates a new ingredient matching the given stack and tagboolean
com.google.gson.JsonElement
toJson()
Methods inherited from class net.minecraftforge.common.crafting.AbstractIngredient
fromJson, fromNetwork, fromValues, of, of, of, of, of
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, fromJson, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, toNetwork, valueFromJson
-
Field Details
-
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()- Specified by:
isSimple
in classAbstractIngredient
-
getSerializer
- Specified by:
getSerializer
in classAbstractIngredient
-
toJson
public com.google.gson.JsonElement toJson()- Specified by:
toJson
in classAbstractIngredient
-