Class IntersectionIngredientMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.IntersectionIngredientMixin
- All Implemented Interfaces:
CustomIngredientKJS,IngredientSupplierKJS,ItemPredicate,Predicate<net.minecraft.world.item.ItemStack>
-
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.item.ItemPredicate
ALL, NONE, TYPE_INFO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMarks whether an ingredient is safe to be used to match recipe filters during the recipe event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.core.CustomIngredientKJS
getItems, kjs$asIngredient, kjs$getDisplayStacks, kjs$getStackArrayMethods inherited from interface dev.latvian.mods.kubejs.item.ItemPredicate
kjs$getFirst, kjs$getItemIds, kjs$getItemStream, kjs$getItemTypes, kjs$getStacks, kjs$isWildcard, kjs$testItem, test
-
Constructor Details
-
IntersectionIngredientMixin
public IntersectionIngredientMixin()
-
-
Method Details
-
kjs$canBeUsedForMatching
public boolean kjs$canBeUsedForMatching()Description copied from interface:ItemPredicateMarks 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$canBeUsedForMatchingin interfaceCustomIngredientKJS- Specified by:
kjs$canBeUsedForMatchingin interfaceItemPredicate
-