Loads of GUI/NEI work. Tomorrow I need to get overlays to render on GuiElement slots

This commit is contained in:
Aidan C. Brady committed 2014-06-15 02:22:55 +02:00
1 parent 3a81058cbd
commit f2b914e216
27 files changed
+320 -65

No files matched your search

@@ -0,0 +1,33 @@
package mekanism.client.nei;
import mekanism.client.gui.GuiMekanism;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Slot;
import codechicken.nei.guihook.IContainerSlotClickHandler;
public class MekanismSlotClickHandler implements IContainerSlotClickHandler
{
@Override
public void beforeSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier)
{
}
@Override
public boolean handleSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier, boolean eventconsumed)
{
if(gui instanceof GuiMekanism)
{
((GuiMekanism)gui).handleMouse(slot, slotIndex, button, modifier);
return true;
}
return false;
}
@Override
public void afterSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier)
{
}
}