Class PartialNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
net.minecraftforge.common.crafting.PartialNBTIngredient
Ingredient that matches the given items, performing a partial NBT match. Use 
StrictNBTIngredient if you want exact match on NBT- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value - 
Field Summary
FieldsFields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionIIngredientSerializer<? extends Ingredient>booleanisSimple()static PartialNBTIngredientof(CompoundTag nbt, ItemLike... items) Creates a new ingredient matching any item from the list, containing the given NBTstatic PartialNBTIngredientof(ItemLike item, CompoundTag nbt) Creates a new ingredient matching the given item, containing the given NBTbooleancom.google.gson.JsonElementtoJson()Methods inherited from class net.minecraftforge.common.crafting.AbstractIngredient
fromJson, fromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, fromJson, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, toNetwork, valueFromJson 
- 
Field Details
- 
items
 - 
nbt
 - 
predicate
 
 - 
 - 
Constructor Details
- 
PartialNBTIngredient
 
 - 
 - 
Method Details
- 
of
Creates a new ingredient matching any item from the list, containing the given NBT - 
of
Creates a new ingredient matching the given item, containing the given NBT - 
test
- Specified by:
 testin interfacePredicate<ItemStack>- Overrides:
 testin classIngredient
 - 
isSimple
public boolean isSimple()- Specified by:
 isSimplein classAbstractIngredient
 - 
getSerializer
- Specified by:
 getSerializerin classAbstractIngredient
 - 
toJson
public com.google.gson.JsonElement toJson()- Specified by:
 toJsonin classAbstractIngredient
 
 -