Class EmiData

java.lang.Object
emi.dev.emi.emi.data.EmiData

public class EmiData extends Object
Helper class for things that are done via JSON in modern versions, as seen on the official EMI wiki page.
  • Field Details

  • Constructor Details

    • EmiData

      public EmiData()
  • Method Details

    • init

      public static void init()
    • addAliases

      public static void addAliases(List<EmiIngredient> ingredients, String aliasName)
    • addAliases

      public static void addAliases(EmiIngredient ingredient, List<String> aliasName)
    • addAliases

      public static void addAliases(EmiIngredient ingredient, String aliasName)
    • addAliases

      public static void addAliases(List<EmiIngredient> ingredients, List<String> aliasName)
      Adds a search alias for an item, allowing for items to show from multiple different search results.
      Parameters:
      ingredients - List of items that will have an alias added
      aliasName - List of strings that, when searched, will show the item
      See Also:
      • defaultAliases()
    • hideRecipe

      public static void hideRecipe(ResourceLocation id)
      Hides recipe from EMI only, does not disable recipe.
      Parameters:
      id - Resource location for recipe. Generally uses SyntheticIdentifier
    • setCategoryOrder

      public static void setCategoryOrder(int order, EmiRecipeCategory category)
      Sets the render order of a category. Should be run after plugin is done initializing.
      Parameters:
      order - Display order, lower first. Default is 0, Crafting (first in order) is -1000.
      category - Category that is having its priority changed.
    • defaultCategoryOrder

      public static void defaultCategoryOrder()