java.lang.Object
net.minecraft.world.item.crafting.Ingredient
com.blamejared.crafttweaker.api.ingredient.type.IngredientAny
All Implemented Interfaces:
IngredientSingleton<IIngredientAny>, Predicate<net.minecraft.world.item.ItemStack>

@ParametersAreNonnullByDefault public class IngredientAny extends net.minecraft.world.item.crafting.Ingredient implements IngredientSingleton<IIngredientAny>
  • Nested Class Summary

    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
    Modifier and Type
    Field
    Description
    static final IngredientAny
     

    Fields inherited from class net.minecraft.world.item.crafting.Ingredient

    EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.item.ItemStack[]
     
    net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
     
    boolean
    test(net.minecraft.world.item.ItemStack stack)
     
    com.google.gson.JsonElement
     

    Methods inherited from class net.minecraft.world.item.crafting.Ingredient

    checkInvalidation, fromJson, fromJson, fromNetwork, fromValues, getStackingIds, invalidate, invalidateAll, isEmpty, 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
  • Field Details

  • Method Details

    • getItems

      public net.minecraft.world.item.ItemStack[] getItems()
      Overrides:
      getItems in class net.minecraft.world.item.crafting.Ingredient
    • test

      public boolean test(@Nullable 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
    • toJson

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

      public boolean isSimple()
      Overrides:
      isSimple in class net.minecraft.world.item.crafting.Ingredient
    • 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
    • getInstance

      public IIngredientAny getInstance()
      Specified by:
      getInstance in interface IngredientSingleton<IIngredientAny>