Java Code Examples for net.minecraft.client.gui.GuiScreen#isAltKeyDown()
The following examples show how to use
net.minecraft.client.gui.GuiScreen#isAltKeyDown() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InputEventHandler.java From enderutilities with GNU Lesser General Public License v3.0 | 6 votes |
private boolean buildersWandClientSideHandling() { if (GuiScreen.isShiftKeyDown() || GuiScreen.isCtrlKeyDown() || GuiScreen.isAltKeyDown()) { return false; } ItemStack stack = this.mc.player.getHeldItemMainhand(); if (stack.isEmpty() == false && stack.getItem() == EnderUtilitiesItems.BUILDERS_WAND && ItemBuildersWand.Mode.getMode(stack) == Mode.COPY) { this.mc.displayGuiScreen(new GuiScreenBuilderWandTemplate()); return true; } return false; }
Example 2
Source File: ToolTip.java From customstuff4 with GNU General Public License v3.0 | 5 votes |
private boolean isCorrectModeActive() { switch (mode.toLowerCase()) { case MODE_SHIFT: return GuiScreen.isShiftKeyDown(); case MODE_CTRL: return GuiScreen.isCtrlKeyDown(); case MODE_ALT: return GuiScreen.isAltKeyDown(); case MODE_NO_SHIFT: return !GuiScreen.isShiftKeyDown(); case MODE_NO_CTRL: return !GuiScreen.isCtrlKeyDown(); case MODE_NO_ALT: return !GuiScreen.isAltKeyDown(); default: return true; } }
Example 3
Source File: WrapperGuiScreen.java From ClientBase with MIT License | 4 votes |
public static boolean isAltKeyDown() { return GuiScreen.isAltKeyDown(); }
Example 4
Source File: ClientProxy.java From enderutilities with GNU Lesser General Public License v3.0 | 4 votes |
@Override public boolean isAltKeyDown() { return GuiScreen.isAltKeyDown(); }