Class EmptyIngredient

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

public class EmptyIngredient extends net.minecraftforge.common.crafting.ingredients.AbstractIngredient
  • 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
     
    static final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EmptyIngredient>
     
    protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     

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

    CODEC_NONEMPTY, EMPTY, VANILLA_CODEC
  • 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[]
     
    protected void
     
    boolean
     
    boolean
     
    net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
    test(net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient

    fromNetwork, fromValues, of, of, of, of, of

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

    checkInvalidation, equals, getStackingIds, invalidateAll, isVanilla, markValid, toNetwork, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, 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
    • SERIALIZER

      public static final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EmptyIngredient> SERIALIZER
  • 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()
      Specified by:
      isSimple in class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
    • invalidate

      protected void invalidate()
      Overrides:
      invalidate in class net.minecraft.world.item.crafting.Ingredient
    • serializer

      @Nonnull public net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> serializer()
      Specified by:
      serializer in class net.minecraftforge.common.crafting.ingredients.AbstractIngredient