mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Loads of GUI/NEI work. Tomorrow I need to get overlays to render on GuiElement slots
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user