public interface IGlobalGuiHandler
IGuiContainerHandler
instead.
Register your implementation with IGuiHandlerRegistration.addGlobalGuiHandler(IGlobalGuiHandler)
.IGuiContainerHandler
Modifier and Type | Method and Description |
---|---|
default java.util.Collection<net.minecraft.client.renderer.Rectangle2d> |
getGuiExtraAreas()
Give JEI information about extra space that your mod takes up.
|
default java.lang.Object |
getIngredientUnderMouse(double mouseX,
double mouseY)
Return anything under the mouse that JEI could not normally detect, used for JEI recipe lookups.
|
default java.util.Collection<net.minecraft.client.renderer.Rectangle2d> getGuiExtraAreas()
ContainerScreen
.@Nullable default java.lang.Object getIngredientUnderMouse(double mouseX, double 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.