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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    ItemIngredient(int amount, Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> stream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromItems(int amount, net.minecraft.world.level.ItemLike... items)
     
    fromStacks(int amount, net.minecraft.world.item.ItemStack... stacks)
     
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • ItemIngredient

      protected ItemIngredient(int amount, Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> stream)
  • Method Details

    • fromItems

      public static ItemIngredient fromItems(int amount, net.minecraft.world.level.ItemLike... items)
    • fromStacks

      public static ItemIngredient fromStacks(int amount, net.minecraft.world.item.ItemStack... stacks)
    • 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)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
      Overrides:
      test in class net.minecraft.world.item.crafting.Ingredient
    • getAmount

      public int getAmount()
    • getSerializer

      public net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.Ingredient
    • toJson

      public com.google.gson.JsonElement toJson()
      Overrides:
      toJson in class net.minecraft.world.item.crafting.Ingredient