Interface RecipeOutputDecorator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RecipeOutputDecorator
Decorates a normally-created output; input snapshots are detached from inventories.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output)
     
    default void
    decoratePreview(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output)
    Catalog inputs may lack runtime bottle metadata; never manufactures playable credentials.
    default void
    decoratePreview(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output, RecipePreviewContext context)
    Logical selections are detached data; existing decorators keep their previous preview behavior.
  • Method Details

    • decorate

      void decorate(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output)
    • decoratePreview

      default void decoratePreview(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output)
      Catalog inputs may lack runtime bottle metadata; never manufactures playable credentials.
    • decoratePreview

      default void decoratePreview(Recipe recipe, List<org.bukkit.inventory.ItemStack> inputSnapshots, org.bukkit.inventory.ItemStack output, RecipePreviewContext context)
      Logical selections are detached data; existing decorators keep their previous preview behavior.