Class DifferenceIngredientMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.DifferenceIngredientMixin
- All Implemented Interfaces:
IngredientKJS,IngredientSupplierKJS,ItemPredicate,ItemMatch,Replaceable,ReplacementMatch,JsonSerializable,NBTSerializable,WithCodec,Predicate<net.minecraft.world.item.ItemStack>
-
Field Summary
Fields inherited from interface dev.latvian.mods.kubejs.item.ItemPredicate
ALL, NONE, TYPE_INFOFields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch
NONE -
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.IngredientKJS
getCodec, kjs$and, kjs$asIngredient, kjs$asStack, kjs$containsAnyTag, kjs$except, kjs$getStackArray, kjs$getTagKey, kjs$isWildcard, kjs$or, kjs$self, kjs$toIngredientString, kjs$withCount, matches, matches, replaceThisWithMethods inherited from interface dev.latvian.mods.kubejs.recipe.match.ItemMatch
matches, matchesAnyMethods inherited from interface dev.latvian.mods.kubejs.item.ItemPredicate
kjs$getDisplayStacks, kjs$getFirst, kjs$getItemIds, kjs$getItemTypes, kjs$getStacks, kjs$testItem
-
Constructor Details
-
DifferenceIngredientMixin
public DifferenceIngredientMixin()
-
-
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 interfaceItemPredicate
-