Class BlockIngredient

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

public class BlockIngredient 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 final net.minecraft.world.level.block.Block
     
    protected final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockIngredient(Optional<net.minecraft.resources.ResourceLocation> blockOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> tagOptional)
     
    BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
     
    BlockIngredient(net.minecraft.world.level.block.Block block)
     
  • 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

    • block

      protected final net.minecraft.world.level.block.Block block
    • tag

      protected final net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag
  • Constructor Details

    • BlockIngredient

      public BlockIngredient(Optional<net.minecraft.resources.ResourceLocation> blockOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> tagOptional)
    • BlockIngredient

      public BlockIngredient(net.minecraft.world.level.block.Block block)
    • BlockIngredient

      public BlockIngredient(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
  • 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