Class WildcardIngredient

java.lang.Object
dev.latvian.mods.kubejs.ingredient.WildcardIngredient
All Implemented Interfaces:
IngredientSupplierKJS, KubeJSIngredient, ItemPredicate, Predicate<net.minecraft.world.item.ItemStack>, net.neoforged.neoforge.common.crafting.ICustomIngredient

public class WildcardIngredient extends Object implements KubeJSIngredient
  • Field Details

    • INSTANCE

      public static WildcardIngredient INSTANCE
    • CODEC

      public static final com.mojang.serialization.MapCodec<WildcardIngredient> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,WildcardIngredient> STREAM_CODEC
  • Method Details

    • getType

      public net.neoforged.neoforge.common.crafting.IngredientType<?> getType()
      Specified by:
      getType in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • test

      public boolean test(@Nullable @Nullable net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
      Specified by:
      test in interface ItemPredicate
      Specified by:
      test in interface KubeJSIngredient
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>