public class GuiHandlerRegistration extends java.lang.Object implements IGuiHandlerRegistration
Constructor and Description |
---|
GuiHandlerRegistration() |
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
IGuiHandlerRegistration.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 . |
GuiScreenHelper |
createGuiScreenHelper(IngredientManager ingredientManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRecipeClickArea
public <T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> void addGuiContainerHandler(java.lang.Class<? extends T> guiClass, IGuiContainerHandler<T> guiHandler)
IGuiHandlerRegistration
ContainerScreen
.
Multiple handlers can be registered for one ContainerScreen
.addGuiContainerHandler
in interface IGuiHandlerRegistration
for handlers that use Java Generics
public <T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>> void addGenericGuiContainerHandler(java.lang.Class<? extends T> guiClass, IGuiContainerHandler<?> guiHandler)
IGuiHandlerRegistration
IGuiHandlerRegistration.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.addGenericGuiContainerHandler
in interface IGuiHandlerRegistration
public void addGlobalGuiHandler(IGlobalGuiHandler globalGuiHandler)
IGuiHandlerRegistration
addGlobalGuiHandler
in interface IGuiHandlerRegistration
public <T extends net.minecraft.client.gui.screen.Screen> void addGuiScreenHandler(java.lang.Class<T> guiClass, IScreenHandler<T> handler)
IGuiHandlerRegistration
Screen
.
By default, JEI can only draw next to ContainerScreen
.addGuiScreenHandler
in interface IGuiHandlerRegistration
public <T extends net.minecraft.client.gui.screen.Screen> void addGhostIngredientHandler(java.lang.Class<T> guiClass, IGhostIngredientHandler<T> handler)
IGuiHandlerRegistration
addGhostIngredientHandler
in interface IGuiHandlerRegistration
public GuiScreenHelper createGuiScreenHelper(IngredientManager ingredientManager)