Package emi.dev.emi.emi.api
Class EmiApi
java.lang.Object
emi.dev.emi.emi.api.EmiApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddisplayRecipe(EmiRecipe recipe) static voiddisplayRecipeCategory(EmiRecipeCategory category) static voiddisplayRecipes(EmiIngredient stack) static voiddisplayUses(EmiIngredient stack) static voidfocusRecipe(EmiRecipe recipe) static GuiContainerstatic EmiStackInteractiongetHoveredStack(boolean includeStandard) Gets the currently hovered EmiIngredient at the mouse orEmiStack.EMPTYif none.static EmiStackInteractiongetHoveredStack(int mouseX, int mouseY, boolean includeStandard) Gets the currently hovered EmiIngredient at the provided screen coordinates, orEmiStack.EMPTYif none.static @Nullable EmiRecipegetRecipeContext(EmiIngredient stack) static EmiRecipeManagerstatic Stringstatic booleanstatic booleanstatic voidsetSearchText(String text) Sets the current search to the provided querystatic void
-
Constructor Details
-
EmiApi
public EmiApi()
-
-
Method Details
-
getIndexStacks
-
getRecipeManager
-
isCheatMode
public static boolean isCheatMode() -
getSearchText
- Returns:
- Current search text
-
setSearchText
Sets the current search to the provided query -
isSearchFocused
public static boolean isSearchFocused() -
getHoveredStack
Gets the currently hovered EmiIngredient at the provided screen coordinates, orEmiStack.EMPTYif none.- Parameters:
includeStandard- Whether to include the EmiIngredient representation of standard stacks in slots or otherwise provided to EMI.
-
getHoveredStack
Gets the currently hovered EmiIngredient at the mouse orEmiStack.EMPTYif none.- Parameters:
includeStandard- Whether to include the EmiIngredient representation of standard stacks in slots or otherwise provided to EMI.
-
getRecipeContext
- Returns:
- Recipe context associated with specific ingredient implementations. This could be favorites, craftables, or something else.
-
getHandledScreen
-
displayAllRecipes
@Environment(CLIENT) public static void displayAllRecipes() -
displayRecipeCategory
-
displayRecipe
-
displayRecipes
-
displayUses
-
viewRecipeTree
@Environment(CLIENT) public static void viewRecipeTree() -
focusRecipe
-