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
  • Constructor Details

    • IngredientMixin

      public IngredientMixin()
  • Method Details

    • kjs$self

      public net.minecraft.world.item.crafting.Ingredient kjs$self()
      Specified by:
      kjs$self in interface IngredientKJS
    • 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: 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