Class ItemIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
info.u_team.u_team_core.ingredient.ItemIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class ItemIngredient
extends net.minecraft.world.item.crafting.Ingredient
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value
-
Field Summary
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY, itemStacks, values
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ItemIngredient
(int amount, Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> stream) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemIngredient
fromItems
(int amount, net.minecraft.world.level.ItemLike... items) static ItemIngredient
fromStacks
(int amount, net.minecraft.world.item.ItemStack... stacks) static ItemIngredient
fromTag
(int amount, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) int
net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
boolean
test
(net.minecraft.world.item.ItemStack stack) com.google.gson.JsonElement
toJson()
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, dissolve, fromJson, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isSimple, isVanilla, markValid, merge, of, of, of, of, of, toNetwork, valueFromJson
-
Constructor Details
-
ItemIngredient
protected ItemIngredient(int amount, Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> stream)
-
-
Method Details
-
fromItems
-
fromStacks
-
fromTag
public static ItemIngredient fromTag(int amount, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) -
test
public boolean test(net.minecraft.world.item.ItemStack stack) -
getAmount
public int getAmount() -
getSerializer
public net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()- Overrides:
getSerializer
in classnet.minecraft.world.item.crafting.Ingredient
-
toJson
public com.google.gson.JsonElement toJson()- Overrides:
toJson
in classnet.minecraft.world.item.crafting.Ingredient
-