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 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.IngredientwithData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data) static net.minecraft.world.item.crafting.IngredientwithData(net.minecraft.core.HolderSet<net.minecraft.world.item.Item> base, net.minecraft.core.component.DataComponentMap data, boolean strict) static net.minecraft.world.item.crafting.Ingredientstatic 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
-
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
-
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)
-