Class BucketFillingShapelessRecipe

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

public class BucketFillingShapelessRecipe extends net.minecraft.world.item.crafting.ShapelessRecipe
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.CraftingRecipe

    net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo

    Nested classes/interfaces inherited from interface net.minecraft.world.item.crafting.Recipe

    net.minecraft.world.item.crafting.Recipe.BookInfo<CategoryType>, net.minecraft.world.item.crafting.Recipe.CommonInfo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.item.crafting.RecipeSerializer<BucketFillingShapelessRecipe>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BucketFillingShapelessRecipe>
     

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

    CODEC, CONDITIONAL_CODEC, KEY_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    BucketFillingShapelessRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, List<net.minecraft.world.item.crafting.Ingredient> ingredients, BucketFillingType fillingType, Optional<net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid>> fluid, Optional<net.minecraft.core.Holder<net.minecraft.world.level.block.Block>> block, Optional<net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>>> entityType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput input)
    Returns an Item that is the result of this recipe
    @NotNull net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapelessRecipe>
     
    boolean
    matches(@NotNull net.minecraft.world.item.crafting.CraftingInput input, @NotNull 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.ShapelessRecipe

    createPlacementInfo, display, result

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

    category, group, placementInfo, showNotification

    Methods inherited from class Object

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

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

    getRemainingItems, getType, recipeBookCategory

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

    isSpecial
  • Field Details

    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, BucketFillingShapelessRecipe> STREAM_CODEC
    • SERIALIZER

      public static final net.minecraft.world.item.crafting.RecipeSerializer<BucketFillingShapelessRecipe> SERIALIZER
  • Constructor Details

    • BucketFillingShapelessRecipe

      public BucketFillingShapelessRecipe(net.minecraft.world.item.crafting.Recipe.CommonInfo commonInfo, net.minecraft.world.item.crafting.CraftingRecipe.CraftingBookInfo bookInfo, List<net.minecraft.world.item.crafting.Ingredient> ingredients, BucketFillingType fillingType, Optional<net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid>> fluid, Optional<net.minecraft.core.Holder<net.minecraft.world.level.block.Block>> block, Optional<net.minecraft.core.Holder<net.minecraft.world.entity.EntityType<?>>> entityType)
  • Method Details

    • matches

      public boolean matches(@NotNull @NotNull net.minecraft.world.item.crafting.CraftingInput input, @NotNull @NotNull 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.ShapelessRecipe
    • assemble

      @NotNull public @NotNull net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput input)
      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.ShapelessRecipe
    • getSerializer

      @NotNull public @NotNull net.minecraft.world.item.crafting.RecipeSerializer<net.minecraft.world.item.crafting.ShapelessRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.CraftingRecipe
      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.ShapelessRecipe