mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
I went for what seemed like a good level of organisation: Java __________ Mekanism __________ Minecraft Forge FML __________ Netty LWJGL __________ Other APIs __________ Static Imports.
36 lines
833 B
Java
36 lines
833 B
Java
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)
|
|
{
|
|
|
|
}
|
|
}
|