{
if(gui instanceof GuiMekanism)
{
GuiMekanism guiMek = (GuiMekanism)gui;
Rectangle4i rect = new Rectangle4i(x, y, width, height);
for(GuiElement element : guiMek.guiElements)
{
if(element.getBounds(guiMek.getXPos(), guiMek.getYPos()).intersects(rect))
{