mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-19 11:59:17 +00:00
Unified build script (#175)
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
This commit is contained in:
1 parent
43b71b1de6
commit
a7ca6c8527
188 files changed
+646
-968
No files matched your search
@@ -0,0 +1,30 @@
|
||||
package codechicken.nei.guihook;
|
||||
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
|
||||
public class DefaultSlotClickHandler 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(!eventconsumed)
|
||||
callHandleMouseClick(gui, slot, slotIndex, button, modifier);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void callHandleMouseClick(GuiContainer gui, Slot slot, int slotIndex, int button, int modifiers) {
|
||||
//calls GuiContainer.mouseClicked using ASM generated forwarder
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user