Invalid leaf directive! `since`

Manages all interactions between JeiTweaker plugins and JEI itself.

This class was added by a mod with mod-id jeitweaker. Perciò, è necessario avere questa mod installata per poter utilizzare questa funzione.

Importare la Classe

Link to importare-la-classe

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
Copy
import mods.jei.JEI;

Name: addCategory

Adds the given category to the list of categories shown by JEI.

Return Type: void

ZenScript
Copy
JEI.addCategory(category as JeiCategory) as void
ParametroTipoDescrizione
Parametro
category
Tipo
JeiCategory
Descrizione
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
Copy
JEI.addDescription(ingredient as JeiIngredient, description as MCTextComponent[]) as void
ParametroTipoDescrizione
Parametro
ingredient
Tipo
JeiIngredient
Descrizione
The ingredient to which the description should be added.
Parametro
description
Tipo
MCTextComponent[]
Descrizione
A series of MCTextComponents identifying the description.

Name: addInfo

Deprecated
Use this#addDescription(RawJeiIngredient, MCTextComponent...) instead. If you are writing a script, conversion between IFluidStack and JeiIngredient is automatic: see com.blamejared.jeitweaker.zen.component.IFluidStackExpansions#asJeiIngredient(IFluidStack). Descriptions need to be converted manually instead: refer to MCTextComponent#createTranslationTextComponent(String).

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
Copy
JEI.addInfo(stack as IFluidStack, description as string[]) as void
ParametroTipoDescrizione
Parametro
stack
Tipo
IFluidStack
Descrizione
The stack to which the information box should be added to.
Parametro
description
Tipo
string[]
Descrizione
A series of strings that represent the description. These information boxes are treated as
{

Name: addInfo

Deprecated
Use this#addDescription(RawJeiIngredient, MCTextComponent...) instead. If you are writing a script, conversion between IItemStack and JeiIngredient is automatic: see com.blamejared.jeitweaker.zen.component.IItemStackExpansions#asJeiIngredient(IItemStack). Descriptions need to be converted manually instead: refer to MCTextComponent#createTranslationTextComponent(String).

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
Copy
JEI.addInfo(stack as IItemStack, description as string[]) as void
ParametroTipoDescrizione
Parametro
stack
Tipo
IItemStack
Descrizione
The stack to which the information box should be added to.
Parametro
description
Tipo
string[]
Descrizione
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
Copy
JEI.addIngredient(ingredient as JeiIngredient) as void
ParametroTipoDescrizione
Parametro
ingredient
Tipo
JeiIngredient
Descrizione
The ingredient that should be shown in JEI.

Name: addItem

Deprecated
Use this#addIngredient(RawJeiIngredient) instead. If you are writing a script, you can use the same syntax as conversion between IItemStack and JeiIngredient is automatic: see com.blamejared.jeitweaker.zen.component.IItemStackExpansions#asJeiIngredient(IItemStack).

Adds the given IItemStack to the list of ingredients that JEI should display.

Return Type: void

ZenScript
Copy
JEI.addItem(stack as IItemStack) as void
ParametroTipoDescrizione
Parametro
stack
Tipo
IItemStack
Descrizione
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
Copy
JEI.hideCategory(category as string) as void
ParametroTipoDescrizione
Parametro
category
Tipo
string
Descrizione
The ID of the category to hide.

Name: hideFluid

Deprecated
Use this#hideIngredient(RawJeiIngredient) instead. If you are writing a script, the conversion between IFluidStack and JeiIngredient is automatic: see com.blamejared.jeitweaker.zen.component.IFluidStackExpansions#asJeiIngredient(IFluidStack).

Hides the given IFluidStack from within JEI.

Return Type: void

ZenScript
Copy
JEI.hideFluid(stack as IFluidStack) as void
ParametroTipoDescrizione
Parametro
stack
Tipo
IFluidStack
Descrizione
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
Copy
JEI.hideIngredient(ingredient as JeiIngredient) as void
ParametroTipoDescrizione
Parametro
ingredient
Tipo
JeiIngredient
Descrizione
The ingredient that should be hidden from JEI.

Name: hideItem

Deprecated
Use this#hideIngredient(RawJeiIngredient) instead. If you are writing a script, the conversion between IItemStack and JeiIngredient is automatic: see com.blamejared.jeitweaker.zen.component.IItemStackExpansions#asJeiIngredient(IItemStack).

Hides the given IItemStack from within JEI.

Return Type: void

ZenScript
Copy
JEI.hideItem(stack as IItemStack) as void
ParametroTipoDescrizione
Parametro
stack
Tipo
IItemStack
Descrizione
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
Copy
JEI.hideMod(modId as string, exclude as RecipeFilter) as void
ParametroTipoDescrizioneOptionalDefaultValue
Parametro
modId
Tipo
string
Descrizione
The mod ID of the ingredients that should be hidden.
Optional
no
DefaultValue
Parametro
esclude
Tipo
RecipeFilter
Descrizione
An optional exclusion filter.
Optional
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
Copy
JEI.hideRecipe(categoryId as string, recipeName as string) as void
ParametroTipoDescrizione
Parametro
categoryId
Tipo
string
Descrizione
The ID of the category where the recipe to hide is located.
Parametro
recipeName
Tipo
string
Descrizione
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
Copy
JEI.hideRegex(regex as string) as void
ParametroTipoDescrizione
Parametro
regex
Tipo
string
Descrizione
The regular expression that identifies ingredient names that should be hidden from JEI.