Interface IRecipe


  • public interface IRecipe
    Represents a custom crafting recipe for the carpentry table or vanilla workbench.
    • Method Detail

      • getName

        String getName()
        Returns:
        the recipe display name.
      • isGlobal

        boolean isGlobal()
        Returns:
        true if this is a global (vanilla workbench) recipe.
      • setIsGlobal

        void setIsGlobal​(boolean global)
        Parameters:
        global - true for global; false for carpentry only.
      • getIgnoreNBT

        boolean getIgnoreNBT()
        Returns:
        true if NBT data is ignored when matching ingredients.
      • setIgnoreNBT

        void setIgnoreNBT​(boolean ignoreNBT)
        Parameters:
        ignoreNBT - true to ignore NBT in ingredient matching.
      • getIgnoreDamage

        boolean getIgnoreDamage()
        Returns:
        true if damage values are ignored when matching ingredients.
      • setIgnoreDamage

        void setIgnoreDamage​(boolean ignoreDamage)
        Parameters:
        ignoreDamage - true to ignore damage in ingredient matching.
      • getWidth

        int getWidth()
        Returns:
        the recipe grid width.
      • getHeight

        int getHeight()
        Returns:
        the recipe grid height.
      • getResult

        net.minecraft.item.ItemStack getResult()
        Returns:
        the resulting item stack.
      • getRecipe

        net.minecraft.item.ItemStack[] getRecipe()
        Returns:
        the ingredient item stacks in grid order.
      • delete

        void delete()
        Deletes this recipe from the handler.
      • getId

        int getId()
        Returns:
        the unique recipe ID.