Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #255 API to open the Recipes Gui for items, fluids, and categories
- Loading branch information
Showing
9 changed files
with
185 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ curse_project_id=238222 | |
|
||
version_major=3 | ||
version_minor=2 | ||
version_patch=11 | ||
version_patch=12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package mezz.jei.api; | ||
|
||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.fluids.Fluid; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.List; | ||
|
||
/** | ||
* JEI's gui for displaying recipes. Use this interface to open recipes. | ||
* | ||
* @since JEI 3.2.12 | ||
*/ | ||
public interface IRecipesGui { | ||
/** | ||
* Show recipes for an {@link ItemStack}. | ||
* Opens the {@link IRecipesGui} if it is closed. | ||
* | ||
* @param focus the {@link ItemStack} result. | ||
*/ | ||
void showRecipes(@Nonnull ItemStack focus); | ||
|
||
/** | ||
* Show recipes for a {@link Fluid}. | ||
* Opens the {@link IRecipesGui} if it is closed. | ||
* | ||
* @param focus the {@link Fluid} result. | ||
*/ | ||
void showRecipes(@Nonnull Fluid focus); | ||
|
||
/** | ||
* Show recipes that use an {@link ItemStack} as an ingredient. | ||
* Opens the {@link IRecipesGui} if it is closed. | ||
* | ||
* @param focus the {@link ItemStack} ingredient. | ||
*/ | ||
void showUses(@Nonnull ItemStack focus); | ||
|
||
/** | ||
* Show recipes that use a {@link Fluid} as an ingredient. | ||
* Opens the {@link IRecipesGui} if it is closed. | ||
* | ||
* @param focus the {@link Fluid} ingredient. | ||
*/ | ||
void showUses(@Nonnull Fluid focus); | ||
|
||
/** | ||
* Show entire categories of recipes. | ||
* | ||
* @param recipeCategoryUids a list of categories to display, in order. Must not be empty. | ||
*/ | ||
void showCategories(@Nonnull List<String> recipeCategoryUids); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters