public interface IAdvancedGuiHandler<T extends net.minecraft.client.gui.inventory.GuiContainer>
IModRegistry.addAdvancedGuiHandlers(IAdvancedGuiHandler[])
.BlankAdvancedGuiHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getGuiContainerClass() |
java.util.List<java.awt.Rectangle> |
getGuiExtraAreas(T guiContainer)
Give JEI information about extra space that the GuiContainer takes up.
|
java.lang.Object |
getIngredientUnderMouse(T guiContainer,
int mouseX,
int mouseY)
Return anything under the mouse that JEI could not normally detect, used for JEI recipe lookups.
|
java.lang.Class<T> getGuiContainerClass()
@Nullable java.util.List<java.awt.Rectangle> getGuiExtraAreas(T guiContainer)
@Nullable java.lang.Object getIngredientUnderMouse(T guiContainer, int mouseX, int mouseY)
This is useful for guis that don't have normal slots (which is how JEI normally detects items under the mouse).
This can also be used to let JEI look up liquids in tanks directly, by returning a FluidStack.
Works with any ingredient type that has been registered with IModIngredientRegistration
.
mouseX
- the current X position of the mouse in screen coordinates.mouseY
- the current Y position of the mouse in screen coordinates.