Class BucketDyeingRecipe

java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
de.cech12.bucketlib.item.crafting.BucketDyeingRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>

public class BucketDyeingRecipe extends net.minecraft.world.item.crafting.CustomRecipe
  • Nested Class Summary

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

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

    CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    BucketDyeingRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess registryAccess)
    Returns an Item that is the result of this recipe
    boolean
    canCraftInDimensions(int width, int height)
    Used to determine if this recipe can fit in a grid of the given width/height
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv)
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
    boolean
    matches(net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.world.level.Level worldIn)
    Used to check if a recipe matches current crafting inventory

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

    category, getResultItem, isSpecial

    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

    getGroup, getIngredients, getToastSymbol, isIncomplete, showNotification
  • Constructor Details

    • BucketDyeingRecipe

      public BucketDyeingRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category)
  • Method Details

    • matches

      public boolean matches(@Nonnull net.minecraft.world.inventory.CraftingContainer inv, @Nonnull net.minecraft.world.level.Level worldIn)
      Used to check if a recipe matches current crafting inventory
    • assemble

      @Nonnull public net.minecraft.world.item.ItemStack assemble(@Nonnull net.minecraft.world.inventory.CraftingContainer inv, net.minecraft.core.RegistryAccess registryAccess)
      Returns an Item that is the result of this recipe
    • getRemainingItems

      @Nonnull public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.inventory.CraftingContainer inv)
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
      Used to determine if this recipe can fit in a grid of the given width/height
    • getSerializer

      @Nonnull public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()