public class ModRegistry extends java.lang.Object implements IModRegistry
Constructor and Description |
---|
ModRegistry(JeiHelpers jeiHelpers,
IIngredientRegistry ingredientRegistry) |
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 |
addAnvilRecipe(net.minecraft.item.ItemStack leftInput,
java.util.List<net.minecraft.item.ItemStack> rightInputs,
java.util.List<net.minecraft.item.ItemStack> outputs)
Adds an anvil recipe for the given inputs and output.
|
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 |
addRecipeCategoryCraftingItem(net.minecraft.item.ItemStack craftingItem,
java.lang.String... recipeCategoryUids)
Add an association between an item and what it can craft.
|
void |
addRecipeClickArea(java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> guiContainerClass,
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 |
addRecipeRegistryPlugin(IRecipeRegistryPlugin recipeRegistryPlugin)
Register your own Recipe Registry Plugin here.
|
void |
addRecipes(java.util.Collection recipes)
Add the recipes provided by the plugin.
|
RecipeRegistry |
createRecipeRegistry(IIngredientRegistry ingredientRegistry) |
java.util.List<IAdvancedGuiHandler<?>> |
getAdvancedGuiHandlers() |
IIngredientRegistry |
getIngredientRegistry()
Get useful functions relating to recipe ingredients.
|
IJeiHelpers |
getJeiHelpers()
Get helpers and tools for implementing JEI plugins.
|
IRecipeTransferRegistry |
getRecipeTransferRegistry()
Get the registry for setting up recipe transfer.
|
public ModRegistry(JeiHelpers jeiHelpers, IIngredientRegistry ingredientRegistry)
public IJeiHelpers getJeiHelpers()
IModRegistry
getJeiHelpers
in interface IModRegistry
public IIngredientRegistry getIngredientRegistry()
IModRegistry
getIngredientRegistry
in interface IModRegistry
public void addRecipeCategories(IRecipeCategory... recipeCategories)
IModRegistry
addRecipeCategories
in interface IModRegistry
public void addRecipeHandlers(IRecipeHandler... recipeHandlers)
IModRegistry
addRecipeHandlers
in interface IModRegistry
public void addRecipes(java.util.Collection recipes)
IModRegistry
addRecipes
in interface IModRegistry
public void addRecipeClickArea(java.lang.Class<? extends net.minecraft.client.gui.inventory.GuiContainer> guiContainerClass, int xPos, int yPos, int width, int height, java.lang.String... recipeCategoryUids)
IModRegistry
addRecipeClickArea
in interface IModRegistry
guiContainerClass
- 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 addRecipeCategoryCraftingItem(net.minecraft.item.ItemStack craftingItem, java.lang.String... recipeCategoryUids)
IModRegistry
addRecipeCategoryCraftingItem
in interface IModRegistry
craftingItem
- the item that can craft recipes (like a furnace or crafting table item)recipeCategoryUids
- the recipe categories handled by the itempublic void addAdvancedGuiHandlers(IAdvancedGuiHandler<?>... advancedGuiHandlers)
IModRegistry
addAdvancedGuiHandlers
in interface IModRegistry
public void addDescription(java.util.List<net.minecraft.item.ItemStack> itemStacks, java.lang.String... descriptionKeys)
addDescription
in interface IModRegistry
public void addDescription(net.minecraft.item.ItemStack itemStack, java.lang.String... descriptionKeys)
IModRegistry
addDescription
in interface IModRegistry
itemStack
- 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 void addAnvilRecipe(net.minecraft.item.ItemStack leftInput, java.util.List<net.minecraft.item.ItemStack> rightInputs, java.util.List<net.minecraft.item.ItemStack> outputs)
IModRegistry
addAnvilRecipe
in interface IModRegistry
leftInput
- The itemStack placed on the left slot.rightInputs
- The itemStack(s) placed on the right slot.outputs
- The resulting itemStack(s).public IRecipeTransferRegistry getRecipeTransferRegistry()
IModRegistry
getRecipeTransferRegistry
in interface IModRegistry
public void addRecipeRegistryPlugin(IRecipeRegistryPlugin recipeRegistryPlugin)
IModRegistry
addRecipeRegistryPlugin
in interface IModRegistry
IRecipeRegistryPlugin
public java.util.List<IAdvancedGuiHandler<?>> getAdvancedGuiHandlers()
public RecipeRegistry createRecipeRegistry(IIngredientRegistry ingredientRegistry)