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.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(OverlayRecipeComponent parent, int x, int y, RecipeDisplayId id, RecipeDisplay recipe, ContextMap context, boolean isCraftable) Creates a new overlay recipe button.
-
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 capturedthisinstance.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-trueif the recipe is craftable from the contents in the player's inventory.
-