JEI
Link to jei
Manages all interactions between JeiTweaker plugins and JEI itself.
This class was added by a mod with mod-id jeitweaker
. 因此,如果要使用此功能,则需要安装此mod。
导入类
Link to 导入类
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.
ZenScript Copyimport mods.jei.JEI;
Static Methods
Link to static-methods
Name: addCategory
Adds the given category to the list of categories shown by JEI.
Return Type: void
ZenScript CopyJEI.addCategory(category as JeiCategory) as void
参数 | 类型 | 描述 |
---|---|---|
参数 category | 类型 JeiCategory | 描述 The category that should be added to JEI. |
Name: addDescription
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
ZenScript CopyJEI.addDescription(ingredient as JeiIngredient, description as MCTextComponent[]) as void
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 JeiIngredient | 描述 The ingredient to which the description should be added. |
参数 description | 类型 MCTextComponent[] | 描述 A series of MCTextComponents identifying the description. |
Name: addInfo
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
ZenScript CopyJEI.addInfo(stack as IFluidStack, description as string[]) as void
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IFluidStack | 描述 The stack to which the information box should be added to. |
参数 description | 类型 string[] | 描述 A series of strings that represent the description. These information boxes are treated as { |
Name: addInfo
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
ZenScript CopyJEI.addInfo(stack as IItemStack, description as string[]) as void
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IItemstack | 描述 The stack to which the information box should be added to. |
参数 description | 类型 string[] | 描述 A series of strings that represent the description. These information boxes are treated as { |
Name: addIngredient
Adds the given JeiIngredient as a custom ingredient to be shown in JEI.
Return Type: void
ZenScript CopyJEI.addIngredient(ingredient as JeiIngredient) as void
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 JeiIngredient | 描述 The ingredient that should be shown in JEI. |
Name: addItem
Adds the given IItemStack to the list of ingredients that JEI should display.
Return Type: void
ZenScript CopyJEI.addItem(stack as IItemStack) as void
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IItemstack | 描述 The stack to be added to JEI. |
Name: hideCategory
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
ZenScript CopyJEI.hideCategory(category as string) as void
参数 | 类型 | 描述 |
---|---|---|
参数 category | 类型 string | 描述 The ID of the category to hide. |
Name: hideFluid
Hides the given IFluidStack from within JEI.
Return Type: void
ZenScript CopyJEI.hideFluid(stack as IFluidStack) as void
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IFluidStack | 描述 The stack that should be hidden from JEI. |
Name: hideIngredient
Hides the given JeiIngredient, so that it does not show up in JEI.
Return Type: void
ZenScript CopyJEI.hideIngredient(ingredient as JeiIngredient) as void
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 JeiIngredient | 描述 The ingredient that should be hidden from JEI. |
Name: hideItem
Hides the given IItemStack from within JEI.
Return Type: void
ZenScript CopyJEI.hideItem(stack as IItemStack) as void
参数 | 类型 | 描述 |
---|---|---|
参数 堆叠 | 类型 IItemstack | 描述 The stack that should be hidden from JEI. |
Name: hideMod
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
ZenScript CopyJEI.hideMod(modId as string, exclude as RecipeFilter) as void
参数 | 类型 | 描述 | 可选 | DefaultValue |
---|---|---|---|---|
参数 modId | 类型 string | 描述 The mod ID of the ingredients that should be hidden. | 可选 false | DefaultValue |
参数 不包含 | 类型 RecipeFilter | 描述 An optional exclusion filter. | 可选 true | DefaultValue (name as string) => {return false;} |
Name: hideRecipe
Hides the recipe with the given name from appearing within the JEI category with the given ID.
Return Type: void
ZenScript CopyJEI.hideRecipe(categoryId as string, recipeName as string) as void
参数 | 类型 | 描述 |
---|---|---|
参数 categoryId | 类型 string | 描述 The ID of the category where the recipe to hide is located. |
参数 recipeName | 类型 string | 描述 The name of the recipe that should be hidden from JEI. |
Name: hideRegex
Hides all JeiIngredients whose name matches the given regular expression.
Return Type: void
ZenScript CopyJEI.hideRegex(regex as string) as void
参数 | 类型 | 描述 |
---|---|---|
参数 regex | 类型 string | 描述 The regular expression that identifies ingredient names that should be hidden from JEI. |