Class TestEnabledIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.neoforged.testframework.condition.TestEnabledIngredient
All Implemented Interfaces:
Predicate<ItemStack>

public final class TestEnabledIngredient extends Ingredient
  • Field Details

  • Constructor Details

  • Method Details

    • test

      public boolean test(@Nullable @Nullable ItemStack stack)
      Specified by:
      test in interface Predicate<ItemStack>
      Overrides:
      test in class Ingredient
    • synchronizeWithContents

      public boolean synchronizeWithContents()
      Description copied from class: Ingredient
      Returns if true, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via the codec.
      Overrides:
      synchronizeWithContents in class Ingredient
      Returns:
      if true, this ingredient will be synchronized using its contents, as in vanilla, otherwise it will be synchronized via the codec
    • isSimple

      public boolean isSimple()
      Overrides:
      isSimple in class Ingredient