Skip to content

Commit

Permalink
Close #981 API request: get recipe category in recipe layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Aug 24, 2017
1 parent b3c73f5 commit af02d15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,4 +5,4 @@ curse_project_id=238222

version_major=4
version_minor=7
version_patch=5
version_patch=6
7 changes: 7 additions & 0 deletions src/api/java/mezz/jei/api/gui/IRecipeLayout.java
Expand Up @@ -47,6 +47,13 @@ public interface IRecipeLayout {
@Nullable
IFocus<?> getFocus();

/**
* The current recipe category.
*
* @since JEI 4.7.6
*/
IRecipeCategory<?> getRecipeCategory();

/**
* Moves the recipe transfer button's position relative to the recipe layout.
* By default the recipe transfer button is at the bottom, to the right of the recipe.
Expand Down
1 change: 1 addition & 0 deletions src/main/java/mezz/jei/gui/recipes/RecipeLayout.java
Expand Up @@ -285,6 +285,7 @@ public RecipeTransferButton getRecipeTransferButton() {
return recipeTransferButton;
}

@Override
public IRecipeCategory getRecipeCategory() {
return recipeCategory;
}
Expand Down

0 comments on commit af02d15

Please sign in to comment.