Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

SimpleJeiCategory

Represents the basic and simplest implementation of a custom JeiCategory.

For the script writers: you should never ever reference this class: use either a specific type or JeiCategory.

For the mod developers: it is highly suggested to use this class as a base to implement a custom category, as it gets rid of most of the boilerplate and also provides a constructor that already follows the requirements outlined in JeiCategory.

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.

script.zs
import mods.jei.category.SimpleJeiCategory;

Implemented Interfaces

SimpleJeiCategory implements the following interfaces. That means all methods defined in these interfaces are also available in SimpleJeiCategory

Properties

NameTypeHas GetterHas SetterDescription
Name
background
Type
JeiDrawable
Has Getter
true
Has Setter
false
Description
Gets the JeiDrawable that serves as the background for recipes of this category.