public interface IGuiContainerHandler<T extends net.minecraft.client.gui.screen.inventory.ContainerScreen<?>>
IGuiHandlerRegistration.addGuiContainerHandler(Class, IGuiContainerHandler).| Modifier and Type | Method and Description |
|---|---|
default java.util.Collection<IGuiClickableArea> |
getGuiClickableAreas(T containerScreen,
double mouseX,
double mouseY)
Return the JEI-controlled clickable areas for this GUI.
|
default java.util.List<net.minecraft.client.renderer.Rectangle2d> |
getGuiExtraAreas(T containerScreen)
Give JEI information about extra space that the
ContainerScreen takes up. |
default java.lang.Object |
getIngredientUnderMouse(T containerScreen,
double mouseX,
double mouseY)
Return anything under the mouse that JEI could not normally detect, used for JEI recipe lookups.
|
default java.util.List<net.minecraft.client.renderer.Rectangle2d> getGuiExtraAreas(T containerScreen)
ContainerScreen takes up.
Used for moving JEI out of the way of extra things like gui tabs.ContainerScreen.@Nullable default java.lang.Object getIngredientUnderMouse(T containerScreen, double mouseX, double mouseY)
IModIngredientRegistration.mouseX - the current X position of the mouse in screen coordinates.mouseY - the current Y position of the mouse in screen coordinates.default java.util.Collection<IGuiClickableArea> getGuiClickableAreas(T containerScreen, double mouseX, double mouseY)