public class ModRegistry extends java.lang.Object implements IModRegistry
| Constructor and Description |
|---|
ModRegistry(IJeiHelpers jeiHelpers,
IItemRegistry itemRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdvancedGuiHandlers(IAdvancedGuiHandler<?>... advancedGuiHandlers)
Add a handler to give JEI extra information about how to layout the item list next to a specific type of GuiContainer.
|
void |
addDescription(net.minecraft.item.ItemStack itemStack,
java.lang.String... descriptionKeys)
Add a description page for an itemStack.
|
void |
addDescription(java.util.List<net.minecraft.item.ItemStack> itemStacks,
java.lang.String... descriptionKeys) |
void |
addRecipeCategories(IRecipeCategory... recipeCategories)
Add the recipe categories provided by this plugin.
|
void |
addRecipeClickArea(java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> guiClass,
int xPos,
int yPos,
int width,
int height,
java.lang.String... recipeCategoryUids)
Add a clickable area on a gui to jump to specific categories of recipes in JEI.
|
void |
addRecipeHandlers(IRecipeHandler... recipeHandlers)
Add the recipe handlers provided by this plugin.
|
void |
addRecipes(java.util.List recipes)
Add the recipes provided by the plugin.
|
RecipeRegistry |
createRecipeRegistry() |
java.util.List<IAdvancedGuiHandler<?>> |
getAdvancedGuiHandlers() |
IItemRegistry |
getItemRegistry()
Get useful functions relating to items.
|
IJeiHelpers |
getJeiHelpers()
Get helpers and tools for addon mods.
|
IRecipeTransferRegistry |
getRecipeTransferRegistry()
Get the registry for setting up recipe transfer.
|
public ModRegistry(@Nonnull
IJeiHelpers jeiHelpers,
@Nonnull
IItemRegistry itemRegistry)
@Nonnull public IJeiHelpers getJeiHelpers()
IModRegistrygetJeiHelpers in interface IModRegistry@Nonnull public IItemRegistry getItemRegistry()
IModRegistrygetItemRegistry in interface IModRegistrypublic void addRecipeCategories(IRecipeCategory... recipeCategories)
IModRegistryaddRecipeCategories in interface IModRegistrypublic void addRecipeHandlers(IRecipeHandler... recipeHandlers)
IModRegistryaddRecipeHandlers in interface IModRegistrypublic void addRecipes(java.util.List recipes)
IModRegistryaddRecipes in interface IModRegistrypublic void addRecipeClickArea(@Nonnull
java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> guiClass,
int xPos,
int yPos,
int width,
int height,
@Nonnull
java.lang.String... recipeCategoryUids)
IModRegistryaddRecipeClickArea in interface IModRegistryguiClass - the gui class for JEI to detect.xPos - left x position of the clickable area, relative to the left edge of the gui.yPos - top y position of the clickable area, relative to the top edge of the gui.width - the width of the clickable area.height - the height of the clickable area.recipeCategoryUids - the recipe categories that JEI should display.public void addAdvancedGuiHandlers(@Nonnull
IAdvancedGuiHandler<?>... advancedGuiHandlers)
IModRegistryaddAdvancedGuiHandlers in interface IModRegistrypublic void addDescription(java.util.List<net.minecraft.item.ItemStack> itemStacks,
java.lang.String... descriptionKeys)
addDescription in interface IModRegistrypublic void addDescription(net.minecraft.item.ItemStack itemStack,
java.lang.String... descriptionKeys)
IModRegistryaddDescription in interface IModRegistryitemStack - the itemStack(s) to describedescriptionKeys - Localization keys for description text.
New lines can be added with "\n" or by giving multiple descriptionKeys.
Long lines are wrapped automatically.
Very long entries will span multiple pages automatically.public IRecipeTransferRegistry getRecipeTransferRegistry()
IModRegistrygetRecipeTransferRegistry in interface IModRegistry@Nonnull public java.util.List<IAdvancedGuiHandler<?>> getAdvancedGuiHandlers()
@Nonnull public RecipeRegistry createRecipeRegistry()