public abstract class BlankAdvancedGuiHandler<T extends net.minecraft.client.gui.inventory.GuiContainer> extends java.lang.Object implements IAdvancedGuiHandler<T>
Constructor and Description |
---|
BlankAdvancedGuiHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGuiContainerClass
@Nullable public java.util.List<java.awt.Rectangle> getGuiExtraAreas(T guiContainer)
IAdvancedGuiHandler
getGuiExtraAreas
in interface IAdvancedGuiHandler<T extends net.minecraft.client.gui.inventory.GuiContainer>
@Nullable public java.lang.Object getIngredientUnderMouse(T guiContainer, int mouseX, int mouseY)
IAdvancedGuiHandler
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
.
getIngredientUnderMouse
in interface IAdvancedGuiHandler<T extends net.minecraft.client.gui.inventory.GuiContainer>
mouseX
- the current X position of the mouse in screen coordinates.mouseY
- the current Y position of the mouse in screen coordinates.