Interface IngredientWrapper
-
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic booleancontainsAnyTag(net.minecraft.world.item.crafting.Ingredient in) static net.minecraft.world.item.ItemStackfirst(net.minecraft.world.item.crafting.Ingredient ingredient) static booleanisIngredient(@Nullable Object o) static booleanisIngredientLike(Object from) static net.minecraft.world.item.crafting.Ingredientof(net.minecraft.world.item.crafting.Ingredient ingredient) static net.neoforged.neoforge.common.crafting.SizedIngredientof(net.minecraft.world.item.crafting.Ingredient ingredient, int count) static net.minecraft.world.item.crafting.IngredientparseJson(dev.latvian.mods.rhino.Context cx, com.google.gson.JsonElement json) static net.minecraft.world.item.crafting.IngredientparseString(dev.latvian.mods.rhino.Context cx, String s) static net.minecraft.world.item.crafting.Ingredientread(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
-
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) -
wrap
@HideFromJS static net.minecraft.world.item.crafting.Ingredient wrap(dev.latvian.mods.rhino.Context cx, @Nullable @Nullable Object o) -
isIngredientLike
-
parseJson
static net.minecraft.world.item.crafting.Ingredient parseJson(dev.latvian.mods.rhino.Context cx, com.google.gson.JsonElement json) -
parseString
static net.minecraft.world.item.crafting.Ingredient parseString(dev.latvian.mods.rhino.Context cx, String s) -
read
static net.minecraft.world.item.crafting.Ingredient read(dev.latvian.mods.rhino.Context cx, com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isIngredient
-
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)
-