Class TestEnabledIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.neoforged.testframework.condition.TestEnabledIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Ingredient
static final com.mojang.serialization.Codec<TestEnabledIngredient>
static final com.mojang.serialization.Codec<TestEnabledIngredient>
private final TestFramework
private final String
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY
-
Constructor Summary
ConstructorDescriptionTestEnabledIngredient
(Ingredient base, TestFramework framework, String testId) -
Method Summary
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
areStacksEqual, 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:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
synchronizeWithContents
public boolean synchronizeWithContents()Description copied from class:Ingredient
Returns iftrue
, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via thecodec
.- Overrides:
synchronizeWithContents
in classIngredient
- Returns:
- if
true
, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via thecodec
-
isSimple
public boolean isSimple()- Overrides:
isSimple
in classIngredient
-