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;
}
Aggregations