public interface IGuiHandlerRegistration
Modifier and Type | Method and Description |
---|---|
<T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> |
addGenericGuiContainerHandler(java.lang.Class<? extends T> guiClass,
IGuiContainerHandler<?> guiHandler)
Same as
addGuiContainerHandler(Class, IGuiContainerHandler) but for handlers that use Java Generics to
support multiple types of containers. |
<T extends net.minecraft.client.gui.screen.Screen> |
addGhostIngredientHandler(java.lang.Class<T> guiClass,
IGhostIngredientHandler<T> handler)
Lets mods accept ghost ingredients from JEI.
|
void |
addGlobalGuiHandler(IGlobalGuiHandler globalGuiHandler)
Add a handler to give JEI extra information about how to layout the ingredient list.
|
<T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> |
addGuiContainerHandler(java.lang.Class<? extends T> guiClass,
IGuiContainerHandler<T> guiHandler)
Add a handler to give JEI extra information about how to layout the item list next to a specific type of
ContainerScreen . |
<T extends net.minecraft.client.gui.screen.Screen> |
addGuiScreenHandler(java.lang.Class<T> guiClass,
IScreenHandler<T> handler)
Add a handler to let JEI draw next to a specific class (or subclass) of
Screen . |
default <T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> |
addRecipeClickArea(java.lang.Class<? extends T> guiContainerClass,
int xPos,
int yPos,
int width,
int height,
net.minecraft.util.ResourceLocation... recipeCategoryUids)
Add a clickable area on a gui to jump to specific categories of recipes in JEI.
|
<T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> void addGuiContainerHandler(java.lang.Class<? extends T> guiClass, IGuiContainerHandler<T> guiHandler)
ContainerScreen
.
Multiple handlers can be registered for one ContainerScreen
.for handlers that use Java Generics
<T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> void addGenericGuiContainerHandler(java.lang.Class<? extends T> guiClass, IGuiContainerHandler<?> guiHandler)
addGuiContainerHandler(Class, IGuiContainerHandler)
but for handlers that use Java Generics to
support multiple types of containers. This type of handler runs into type issues with the regular method.<T extends net.minecraft.client.gui.screen.Screen> void addGuiScreenHandler(java.lang.Class<T> guiClass, IScreenHandler<T> handler)
Screen
.
By default, JEI can only draw next to ContainerScreen
.void addGlobalGuiHandler(IGlobalGuiHandler globalGuiHandler)
default <T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> void addRecipeClickArea(java.lang.Class<? extends T> guiContainerClass, int xPos, int yPos, int width, int height, net.minecraft.util.ResourceLocation... recipeCategoryUids)
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.<T extends net.minecraft.client.gui.screen.Screen> void addGhostIngredientHandler(java.lang.Class<T> guiClass, IGhostIngredientHandler<T> handler)