Class PartialNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.PartialNBTIngredient
Ingredient that matches the given items, performing a partial NBT match. Use 
StrictNBTIngredient if you want exact match on NBT- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.item.crafting.IngredientIngredient.ItemValue, Ingredient.TagValue, Ingredient.Value
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PartialNBTIngredient>private final CompoundTagprivate final NbtPredicatestatic final IIngredientSerializer<PartialNBTIngredient>Fields inherited from class net.minecraft.world.item.crafting.IngredientCODEC_NONEMPTY, EMPTY, VANILLA_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PartialNBTIngredient.Builderbuilder()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 NBTIIngredientSerializer<? extends Ingredient>booleanMethods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredientfromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.IngredientcheckInvalidation, equals, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, toJson, toNetwork
- 
Field Details- 
items
- 
nbt
- 
predicate
- 
CODEC
- 
SERIALIZER
 
- 
- 
Constructor Details- 
PartialNBTIngredient
 
- 
- 
Method Details- 
builder
- 
ofCreates a new ingredient matching any item from the list, containing the given NBT
- 
ofCreates a new ingredient matching the given item, containing the given NBT
- 
test- Specified by:
- testin interface- Predicate<ItemStack>
- Overrides:
- testin class- Ingredient
 
- 
isSimplepublic boolean isSimple()- Specified by:
- isSimplein class- AbstractIngredient
 
- 
serializer- Specified by:
- serializerin class- AbstractIngredient
 
 
-