Class IngredientMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.IngredientMixin
- All Implemented Interfaces:
IngredientKJS,IngredientSupplierKJS,ItemPredicate,ItemMatch,Replaceable,ReplacementMatch,JsonSerializable,NBTSerializable,WithCodec,Predicate<net.minecraft.world.item.ItemStack>
@RemapPrefixForJS("kjs$")
public abstract class IngredientMixin
extends Object
implements IngredientKJS
-
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 TypeMethodDescriptionabstract net.neoforged.neoforge.common.crafting.ICustomIngredientabstract net.minecraft.world.item.ItemStack[]getItems()abstract booleanisCustom()booleanMarks whether an ingredient is safe to be used to match recipe filters during the recipe event.net.minecraft.world.item.crafting.Ingredientkjs$self()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$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$getItemStream, kjs$getItemTypes, kjs$getStacks, kjs$testItem, test
-
Constructor Details
-
IngredientMixin
public IngredientMixin()
-
-
Method Details
-
kjs$self
public net.minecraft.world.item.crafting.Ingredient kjs$self()- Specified by:
kjs$selfin interfaceIngredientKJS
-
getItems
@HideFromJS public abstract net.minecraft.world.item.ItemStack[] getItems() -
getCustomIngredient
public abstract net.neoforged.neoforge.common.crafting.ICustomIngredient getCustomIngredient() -
isCustom
public abstract boolean isCustom() -
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
-