Class BucketFillingShapedRecipe

java.lang.Object
net.minecraft.world.item.crafting.ShapedRecipe
de.cech12.bucketlib.item.crafting.BucketFillingShapedRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>

public class BucketFillingShapedRecipe extends net.minecraft.world.item.crafting.ShapedRecipe
  • Nested Class Summary

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

    Fields inherited from interface net.minecraft.world.item.crafting.Recipe

    CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    BucketFillingShapedRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, BucketFillingType fillingType, Optional<net.minecraft.world.level.material.Fluid> fluid, Optional<net.minecraft.world.level.block.Block> block, Optional<net.minecraft.world.entity.EntityType<?>> entityType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider provider)
    Returns an Item that is the result of this recipe
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level)
    Used to check if a recipe matches current crafting inventory

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

    canCraftInDimensions, category, getGroup, getHeight, getIngredients, getResultItem, getWidth, isIncomplete, showNotification

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe

    getType

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    getRemainingItems, getToastSymbol, isSpecial
  • Constructor Details

    • BucketFillingShapedRecipe

      public BucketFillingShapedRecipe(String group, net.minecraft.world.item.crafting.CraftingBookCategory category, net.minecraft.world.item.crafting.ShapedRecipePattern pattern, BucketFillingType fillingType, Optional<net.minecraft.world.level.material.Fluid> fluid, Optional<net.minecraft.world.level.block.Block> block, Optional<net.minecraft.world.entity.EntityType<?>> entityType)
  • Method Details

    • matches

      public boolean matches(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.world.level.Level level)
      Used to check if a recipe matches current crafting inventory
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      matches in class net.minecraft.world.item.crafting.ShapedRecipe
    • assemble

      @Nonnull public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.core.HolderLookup.Provider provider)
      Returns an Item that is the result of this recipe
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      assemble in class net.minecraft.world.item.crafting.ShapedRecipe
    • getSerializer

      @Nonnull public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.ShapedRecipe