Invalid leaf directive! `since`

JeiRecipeGraphics

Link to jeirecipegraphics

Allows a JeiRecipe to request additional graphic capabilities to its parent JeiCategory.

Support for the various methods available depends on the category to which the recipe is being added to. Refer to the category documentation for more information. Namely, categories need not support nor acknowledge any of the requests specified by a recipe if they do not desire to do so.

This class was added by a mod with mod-id jeitweaker. Так что если вы хотите использовать эту функцию, вам нужно установить этот мод.

Импорт класса

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

Name: addTooltip

Sets the tooltip identified by the given key to the given set of components.

Return Type: void

ZenScript
Copy
JeiRecipeGraphics.addTooltip(key as string, lines as MCTextComponent[]) as void
ПараметрТипОписание
Параметр
key
Тип
string
Описание
The key that identifies the tooltip.
Параметр
lines
Тип
MCTextComponent[]
Описание
The components that make up the tooltip.

Name: addTooltip

Asks the category to render a tooltip with the given components as lines when the cursor is in the active area indicated by the given coordinates and with the given width and height.

Return Type: void

ZenScript
Copy
JeiRecipeGraphics.addTooltip(x as int, y as int, activeAreaWidth as int, activeAreaHeight as int, lines as MCTextComponent[]) as void
ПараметрТипОписание
Параметр
x
Тип
int
Описание
The x coordinate of the top-left corner of the active area rectangle.
Параметр
y
Тип
int
Описание
The y coordinate of the top-left corner of the active area rectangle.
Параметр
activeAreaWidth
Тип
int
Описание
The width of the active area rectangle.
Параметр
activeAreaHeight
Тип
int
Описание
The height of the active area rectangle.
Параметр
lines
Тип
MCTextComponent[]
Описание
The components that make up the tooltip.

Link to setExtraComponent

Name: setExtraComponent

Sets the value of the extra component identified by the given key to the component specified.

Return Type: void

ZenScript
Copy
JeiRecipeGraphics.setExtraComponent(key as string, component as MCTextComponent) as void
ПараметрТипОписание
Параметр
key
Тип
string
Описание
The key that identifies the extra component.
Параметр
component
Тип
Компонент MCTextcomponent
Описание
The component to set.

Link to showShapelessMarker

Name: showShapelessMarker

Shows a shapeless marker for the current recipe, if possible.

Return Type: void

ZenScript
Copy
// JeiRecipeGraphics.showShapelessMarker() as void

myJeiRecipeGraphics.showShapelessMarker();