Class TestEnabledIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.neoforged.testframework.condition.TestEnabledIngredient
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.crafting.IngredientIngredient.ItemValue, Ingredient.TagValue, Ingredient.Value
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Ingredientstatic final com.mojang.serialization.Codec<TestEnabledIngredient>static final com.mojang.serialization.Codec<TestEnabledIngredient>private final TestFrameworkprivate final StringFields inherited from class net.minecraft.world.item.crafting.IngredientEMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY
- 
Constructor SummaryConstructorsConstructorDescriptionTestEnabledIngredient(Ingredient base, TestFramework framework, String testId) 
- 
Method SummaryMethods inherited from class net.minecraft.world.item.crafting.IngredientareStacksEqual, equals, fromJson, fromNetwork, fromValues, getItems, getStackingIds, getType, getValues, isEmpty, of, of, of, of, of, toNetwork
- 
Field Details- 
CODEC
- 
CODEC_NONEMPTY
- 
base
- 
framework
- 
testId
 
- 
- 
Constructor Details- 
TestEnabledIngredient
 
- 
- 
Method Details- 
test- Specified by:
- testin interface- Predicate<ItemStack>
- Overrides:
- testin class- Ingredient
 
- 
synchronizeWithContentspublic boolean synchronizeWithContents()Description copied from class:IngredientReturns iftrue, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via thecodec.- Overrides:
- synchronizeWithContentsin class- Ingredient
- Returns:
- if true, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via thecodec
 
- 
isSimplepublic boolean isSimple()- Overrides:
- isSimplein class- Ingredient
 
 
-