Interface KubeJSIngredient

All Superinterfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient, IngredientSupplierKJS, ItemPredicate, Predicate<net.minecraft.world.item.ItemStack>
All Known Implementing Classes:
CreativeTabIngredient, NamespaceIngredient, RegExIngredient, WildcardIngredient

public interface KubeJSIngredient extends net.neoforged.neoforge.common.crafting.ICustomIngredient, ItemPredicate
  • Method Details

    • test

      boolean test(net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
      Specified by:
      test in interface ItemPredicate
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
    • getItems

      default Stream<net.minecraft.world.item.ItemStack> getItems()
      Specified by:
      getItems in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • isSimple

      default boolean isSimple()
      Specified by:
      isSimple in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • kjs$canBeUsedForMatching

      default boolean kjs$canBeUsedForMatching()
      Description copied from interface: ItemPredicate
      Marks whether an ingredient is safe to be used to match recipe filters during the recipe event. (The answer is usually no for non-Vanilla ingredients, but can be overridden manually by addons or downstream mods with integration.)
      Specified by:
      kjs$canBeUsedForMatching in interface ItemPredicate