Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2022-06-27 10:23:18 -07:00
1 parent a7683b885d
commit f7a900e910
173 files changed
+4581 -5321

No files matched your search

@@ -3,28 +3,22 @@ package codechicken.nei.guihook;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.inventory.Slot;
public class DefaultSlotClickHandler implements IContainerSlotClickHandler
{
public class DefaultSlotClickHandler implements IContainerSlotClickHandler {
@Override
public void beforeSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier)
{
}
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);
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
// calls GuiContainer.mouseClicked using ASM generated forwarder
}
@Override
public void afterSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier)
{
}
public void afterSlotClick(GuiContainer gui, int slotIndex, int button, Slot slot, int modifier) {}
}