Class EmiApi

java.lang.Object
emi.dev.emi.emi.api.EmiApi

public class EmiApi extends Object
  • Constructor Details

    • EmiApi

      public EmiApi()
  • Method Details

    • getIndexStacks

      public static List<EmiStack> getIndexStacks()
    • getRecipeManager

      public static EmiRecipeManager getRecipeManager()
    • isCheatMode

      public static boolean isCheatMode()
    • getSearchText

      public static String getSearchText()
      Returns:
      Current search text
    • setSearchText

      public static void setSearchText(String text)
      Sets the current search to the provided query
    • isSearchFocused

      public static boolean isSearchFocused()
    • getHoveredStack

      public static EmiStackInteraction getHoveredStack(int mouseX, int mouseY, boolean includeStandard)
      Gets the currently hovered EmiIngredient at the provided screen coordinates, or EmiStack.EMPTY if none.
      Parameters:
      includeStandard - Whether to include the EmiIngredient representation of standard stacks in slots or otherwise provided to EMI.
    • getHoveredStack

      public static EmiStackInteraction getHoveredStack(boolean includeStandard)
      Gets the currently hovered EmiIngredient at the mouse or EmiStack.EMPTY if none.
      Parameters:
      includeStandard - Whether to include the EmiIngredient representation of standard stacks in slots or otherwise provided to EMI.
    • getRecipeContext

      @Nullable public static @Nullable EmiRecipe getRecipeContext(EmiIngredient stack)
      Returns:
      Recipe context associated with specific ingredient implementations. This could be favorites, craftables, or something else.
    • getHandledScreen

      @Environment(CLIENT) public static GuiContainer getHandledScreen()
    • displayAllRecipes

      @Environment(CLIENT) public static void displayAllRecipes()
    • displayRecipeCategory

      @Environment(CLIENT) public static void displayRecipeCategory(EmiRecipeCategory category)
    • displayRecipe

      @Environment(CLIENT) public static void displayRecipe(EmiRecipe recipe)
    • displayRecipes

      @Environment(CLIENT) public static void displayRecipes(EmiIngredient stack)
    • displayUses

      @Environment(CLIENT) public static void displayUses(EmiIngredient stack)
    • viewRecipeTree

      @Environment(CLIENT) public static void viewRecipeTree()
    • focusRecipe

      @Environment(CLIENT) public static void focusRecipe(EmiRecipe recipe)