Interface IngredientWrapper


@Info("Various Ingredient related helper methods") public interface IngredientWrapper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.item.crafting.Ingredient
     
    static final net.minecraft.world.item.crafting.Ingredient
     
    static final dev.latvian.mods.rhino.type.TypeInfo
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static boolean
    containsAnyTag(net.minecraft.world.item.crafting.Ingredient in)
     
    static net.minecraft.world.item.ItemStack
    first(net.minecraft.world.item.crafting.Ingredient ingredient)
     
    static boolean
    isIngredient(@Nullable Object o)
     
    static boolean
     
    static net.minecraft.world.item.crafting.Ingredient
    of(net.minecraft.world.item.crafting.Ingredient ingredient)
     
    static net.neoforged.neoforge.common.crafting.SizedIngredient
    of(net.minecraft.world.item.crafting.Ingredient ingredient, int count)
     
    static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient>
    parseJson(dev.latvian.mods.rhino.Context cx, com.google.gson.JsonElement json)
     
    static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient>
    parseString(dev.latvian.mods.rhino.Context cx, String s)
     
    static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient>
    read(dev.latvian.mods.rhino.Context cx, com.mojang.brigadier.StringReader reader)
     
    static @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    tagKeyOf(net.minecraft.world.item.crafting.Ingredient in)
     
    static net.minecraft.world.item.crafting.Ingredient
    withData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data)
     
    static net.minecraft.world.item.crafting.Ingredient
    withData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data, boolean strict)
     
    static net.minecraft.world.item.crafting.Ingredient
    wrap(dev.latvian.mods.rhino.Context cx, @Nullable Object from)
     
    static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient>
    wrapResult(dev.latvian.mods.rhino.Context cx, @Nullable Object from)
     
  • Field Details

    • TYPE_INFO

      static final dev.latvian.mods.rhino.type.TypeInfo TYPE_INFO
    • none

      @Info("A completely empty ingredient that will only match air") static final net.minecraft.world.item.crafting.Ingredient none
    • all

      @Info("An ingredient that matches everything") static final net.minecraft.world.item.crafting.Ingredient all
  • Method Details

    • of

      @Info("Returns an ingredient of the input") static net.minecraft.world.item.crafting.Ingredient of(net.minecraft.world.item.crafting.Ingredient ingredient)
    • of

      @Info("Returns an ingredient of the input, with the specified count") static net.neoforged.neoforge.common.crafting.SizedIngredient of(net.minecraft.world.item.crafting.Ingredient ingredient, int count)
    • withData

      @Info("Returns an ingredient that accepts the given set of items under the given component filter.") static net.minecraft.world.item.crafting.Ingredient withData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data)
    • withData

      @Info("Returns an ingredient that accepts the given set of items under the given (optionally strict) component filter.") static net.minecraft.world.item.crafting.Ingredient withData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data, boolean strict)
    • wrapResult

      @HideFromJS static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient> wrapResult(dev.latvian.mods.rhino.Context cx, @Nullable @Nullable Object from)
    • wrap

      @HideFromJS static net.minecraft.world.item.crafting.Ingredient wrap(dev.latvian.mods.rhino.Context cx, @Nullable @Nullable Object from)
    • isIngredientLike

      static boolean isIngredientLike(Object from)
    • parseJson

      static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient> parseJson(dev.latvian.mods.rhino.Context cx, com.google.gson.JsonElement json)
    • parseString

      static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient> parseString(dev.latvian.mods.rhino.Context cx, String s)
    • read

      static com.mojang.serialization.DataResult<net.minecraft.world.item.crafting.Ingredient> read(dev.latvian.mods.rhino.Context cx, com.mojang.brigadier.StringReader reader)
    • isIngredient

      @Info("Checks if the passed in object is an Ingredient.\nNote that this does not mean it will not function as an Ingredient if passed to something that requests one.\n") static boolean isIngredient(@Nullable @Nullable Object o)
    • first

      static net.minecraft.world.item.ItemStack first(net.minecraft.world.item.crafting.Ingredient ingredient)
    • tagKeyOf

      @Nullable static @Nullable net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tagKeyOf(net.minecraft.world.item.crafting.Ingredient in)
    • containsAnyTag

      static boolean containsAnyTag(net.minecraft.world.item.crafting.Ingredient in)