Search in sources :

Example 1 with IIngredientSlot

use of gregtech.api.gui.igredient.IIngredientSlot in project GregTech by GregTechCE.

the class AbstractWidgetGroup method getIngredientOverMouse.

@Override
public Object getIngredientOverMouse(int mouseX, int mouseY) {
    if (!isVisible) {
        return Collections.emptyList();
    }
    for (Widget widget : widgets) {
        if (widget instanceof IIngredientSlot) {
            IIngredientSlot ingredientSlot = (IIngredientSlot) widget;
            Object result = ingredientSlot.getIngredientOverMouse(mouseX, mouseY);
            if (result != null)
                return result;
        }
    }
    return null;
}
Also used : INativeWidget(gregtech.api.gui.INativeWidget) Widget(gregtech.api.gui.Widget) IIngredientSlot(gregtech.api.gui.igredient.IIngredientSlot)

Aggregations

INativeWidget (gregtech.api.gui.INativeWidget)1 Widget (gregtech.api.gui.Widget)1 IIngredientSlot (gregtech.api.gui.igredient.IIngredientSlot)1