Interface RecipeOverlayButtonCreator

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 RecipeOverlayButtonCreator
  • Method Details

    • create

      OverlayRecipeComponent.OverlayRecipeButton create(OverlayRecipeComponent parent, int x, int y, RecipeDisplayId id, RecipeDisplay recipe, ContextMap context, boolean isCraftable)
      Creates a new overlay recipe button.
      Parameters:
      parent - Overlay recipe component to treat as the captured this instance.
      x - X position of the button.
      y - Y position of the button.
      id - Id representation of the recipe the button is being created for.
      recipe - Display of the recipe the button is being created for.
      context - Context data for recipes.
      isCraftable - true if the recipe is craftable from the contents in the player's inventory.