mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-15 09:44:44 +00:00
* 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
70 lines
1.7 KiB
Java
70 lines
1.7 KiB
Java
package codechicken.nei;
|
|
|
|
import codechicken.nei.guihook.IContainerInputHandler;
|
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
|
|
|
import static codechicken.nei.NEIClientConfig.canPerformAction;
|
|
import static codechicken.nei.NEIClientConfig.getKeyBinding;
|
|
|
|
public class PopupInputHandler implements IContainerInputHandler
|
|
{
|
|
@Override
|
|
public boolean keyTyped(GuiContainer gui, char keyChar, int keyCode)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean mouseClicked(GuiContainer gui, int mousex, int mousey, int button)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void onKeyTyped(GuiContainer gui, char keyChar, int keyID)
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public boolean lastKeyTyped(GuiContainer gui, char keyChar, int keyID)
|
|
{
|
|
if(keyID == getKeyBinding("gui.enchant") && canPerformAction("enchant"))
|
|
{
|
|
NEICPH.sendOpenEnchantmentWindow();
|
|
return true;
|
|
}
|
|
if(keyID == getKeyBinding("gui.potion") && canPerformAction("potion"))
|
|
{
|
|
NEICPH.sendOpenPotionWindow();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void onMouseClicked(GuiContainer gui, int mousex, int mousey, int button)
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public void onMouseUp(GuiContainer gui, int mousex, int mousey, int button)
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public boolean mouseScrolled(GuiContainer gui, int mousex, int mousey, int scrolled)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public void onMouseScrolled(GuiContainer gui, int mousex, int mousey, int scrolled)
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public void onMouseDragged(GuiContainer gui, int mousex, int mousey, int button, long heldTime)
|
|
{
|
|
}
|
|
}
|