Class EmptyIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
de.cech12.bucketlib.api.crafting.EmptyIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class EmptyIngredient extends net.minecraft.world.item.crafting.Ingredient
  • 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 com.mojang.serialization.Codec<EmptyIngredient>
     
    protected net.minecraft.world.item.Item
     
    protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     
    static final net.neoforged.neoforge.common.crafting.IngredientType<EmptyIngredient>
     

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

    CODEC_NONEMPTY, EMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    EmptyIngredient(Optional<net.minecraft.resources.ResourceLocation> itemOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> tagOptional)
     
    EmptyIngredient(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
     
    EmptyIngredient(net.minecraft.world.item.Item item)
     
    EmptyIngredient(net.minecraft.world.item.Item item, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack[]
     
    boolean
     
    boolean
     
    boolean
    test(net.minecraft.world.item.ItemStack itemStack)
     

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

    areStacksEqual, equals, fromJson, fromNetwork, fromValues, getStackingIds, getType, getValues, of, of, of, of, of, synchronizeWithContents, toNetwork

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • item

      protected net.minecraft.world.item.Item item
    • tag

      protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag
    • CODEC

      public static final com.mojang.serialization.Codec<EmptyIngredient> CODEC
    • TYPE

      public static final net.neoforged.neoforge.common.crafting.IngredientType<EmptyIngredient> TYPE
  • Constructor Details

    • EmptyIngredient

      public EmptyIngredient(net.minecraft.world.item.Item item, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • EmptyIngredient

      public EmptyIngredient(net.minecraft.world.item.Item item)
    • EmptyIngredient

      public EmptyIngredient(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • EmptyIngredient

      public EmptyIngredient()
    • EmptyIngredient

      public EmptyIngredient(Optional<net.minecraft.resources.ResourceLocation> itemOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> tagOptional)
  • Method Details

    • test

      public boolean test(net.minecraft.world.item.ItemStack itemStack)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
      Overrides:
      test in class net.minecraft.world.item.crafting.Ingredient
    • getItems

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

      public boolean isEmpty()
      Overrides:
      isEmpty in class net.minecraft.world.item.crafting.Ingredient
    • isSimple

      public boolean isSimple()
      Overrides:
      isSimple in class net.minecraft.world.item.crafting.Ingredient