Interface ItemMatch

All Superinterfaces:
ReplacementMatch
All Known Subinterfaces:
IngredientKJS, ItemStackKJS, SizedIngredientKJS
All Known Implementing Classes:
IngredientMixin, ItemStackMixin, SizedIngredientMixin

public interface ItemMatch extends ReplacementMatch
  • Field Summary

    Fields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch

    NONE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(RecipeMatchContext cx, net.minecraft.world.item.crafting.Ingredient in, boolean exact)
     
    boolean
    matches(RecipeMatchContext cx, net.minecraft.world.item.ItemStack item, boolean exact)
     
    default boolean
    matches(RecipeMatchContext cx, net.minecraft.world.level.ItemLike itemLike, boolean exact)
     
    default boolean
    matchesAny(RecipeMatchContext cx, Iterable<net.minecraft.world.level.ItemLike> itemLikes, boolean exact)
     
  • Method Details

    • matches

      boolean matches(RecipeMatchContext cx, net.minecraft.world.item.ItemStack item, boolean exact)
    • matches

      boolean matches(RecipeMatchContext cx, net.minecraft.world.item.crafting.Ingredient in, boolean exact)
    • matches

      default boolean matches(RecipeMatchContext cx, net.minecraft.world.level.ItemLike itemLike, boolean exact)
    • matchesAny

      default boolean matchesAny(RecipeMatchContext cx, Iterable<net.minecraft.world.level.ItemLike> itemLikes, boolean exact)