JEI
Manages all interactions between JeiTweaker plugins and JEI itself.
This class was added by a mod with mod-id jeitweaker. So you need to have this mod installed if you want to use this feature.
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import mods.jei.JEI;Static Methods
Adds the given category to the list of categories shown by JEI.
Return Type: void
JEI.addCategory(category as JeiCategory) as void| Parameter | Type | Description | 
|---|---|---|
| Parametercategory | TypeJeiCategory | DescriptionThe category that should be added to JEI. | 
Adds a description for the given JeiIngredient. 
  
  The description is defined as the text that is shown in the info box that appears as one of the recipe 
  categories for the queried ingredient.
Return Type: void
JEI.addDescription(ingredient as JeiIngredient, description as MCTextComponent[]) as void| Parameter | Type | Description | 
|---|---|---|
| Parameteringredient | TypeJeiIngredient | DescriptionThe ingredient to which the description should be added. | 
| Parameterdescription | TypeMCTextComponent[] | DescriptionA series of MCTextComponents identifying the description. | 
Adds an information box for the given IFluidStack. 
  
  The information box is identified by an information symbol that appears as one of the categories available 
  when querying an ingredient.
Return Type: void
JEI.addInfo(stack as IFluidStack, description as string[]) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIFluidStack | DescriptionThe stack to which the information box should be added to. | 
| Parameterdescription | Typestring[] | DescriptionA series of strings that represent the description. These information boxes are treated as { | 
Adds an information box for the given IItemStack. 
  
  The information box is identified by an information symbol that appears as one of the categories available 
  when querying an ingredient.
Return Type: void
JEI.addInfo(stack as IItemStack, description as string[]) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIItemStack | DescriptionThe stack to which the information box should be added to. | 
| Parameterdescription | Typestring[] | DescriptionA series of strings that represent the description. These information boxes are treated as { | 
Adds the given JeiIngredient as a custom ingredient to be shown in JEI.
Return Type: void
JEI.addIngredient(ingredient as JeiIngredient) as void| Parameter | Type | Description | 
|---|---|---|
| Parameteringredient | TypeJeiIngredient | DescriptionThe ingredient that should be shown in JEI. | 
Adds the given IItemStack to the list of ingredients that JEI should display.
Return Type: void
JEI.addItem(stack as IItemStack) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIItemStack | DescriptionThe stack to be added to JEI. | 
Hides the category identified by the given category ID from displaying within JEI. 
  
  A full list of categories is available through the /ct dump jeiCategories command.
Return Type: void
JEI.hideCategory(category as string) as void| Parameter | Type | Description | 
|---|---|---|
| Parametercategory | Typestring | DescriptionThe ID of the category to hide. | 
Hides the given IFluidStack from within JEI.
Return Type: void
JEI.hideFluid(stack as IFluidStack) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIFluidStack | DescriptionThe stack that should be hidden from JEI. | 
Hides the given JeiIngredient, so that it does not show up in JEI.
Return Type: void
JEI.hideIngredient(ingredient as JeiIngredient) as void| Parameter | Type | Description | 
|---|---|---|
| Parameteringredient | TypeJeiIngredient | DescriptionThe ingredient that should be hidden from JEI. | 
Hides the given IItemStack from within JEI.
Return Type: void
JEI.hideItem(stack as IItemStack) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterstack | TypeIItemStack | DescriptionThe stack that should be hidden from JEI. | 
Hides all JeiIngredients of a given mod, making sure that they do not show up in JEI. 
  
  Optionally, some ingredients can be excluded based on their registry name from the hiding by making use of the 
  RecipeFilter.
Return Type: void
JEI.hideMod(modId as string, exclude as RecipeFilter) as void| Parameter | Type | Description | Optional | DefaultValue | 
|---|---|---|---|---|
| ParametermodId | Typestring | DescriptionThe mod ID of the ingredients that should be hidden. | Optionalfalse | DefaultValue | 
| Parameterexclude | TypeRecipeFilter | DescriptionAn optional exclusion filter. | Optionaltrue | DefaultValue(name as string) => {return false;} | 
Hides the recipe with the given name from appearing within the JEI category with the given ID.
Return Type: void
JEI.hideRecipe(categoryId as string, recipeName as string) as void| Parameter | Type | Description | 
|---|---|---|
| ParametercategoryId | Typestring | DescriptionThe ID of the category where the recipe to hide is located. | 
| ParameterrecipeName | Typestring | DescriptionThe name of the recipe that should be hidden from JEI. | 
Hides all JeiIngredients whose name matches the given regular expression.
Return Type: void
JEI.hideRegex(regex as string) as void| Parameter | Type | Description | 
|---|---|---|
| Parameterregex | Typestring | DescriptionThe regular expression that identifies ingredient names that should be hidden from JEI. |