Class EmptyIngredient

java.lang.Object
de.cech12.bucketlib.api.crafting.EmptyIngredient
All Implemented Interfaces:
net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient

public class EmptyIngredient extends Object implements net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.item.Item
     
    protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     
  • 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
    List<net.minecraft.world.item.ItemStack>
     
    net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?>
     
    boolean
     
    boolean
    test(net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient

    toVanilla
  • Field Details

    • item

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

      protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag
  • 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 net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • getMatchingStacks

      public List<net.minecraft.world.item.ItemStack> getMatchingStacks()
      Specified by:
      getMatchingStacks in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • requiresTesting

      public boolean requiresTesting()
      Specified by:
      requiresTesting in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient
    • getSerializer

      public net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredientSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.fabricmc.fabric.api.recipe.v1.ingredient.CustomIngredient