Added more stuff to the main method (strg, shift clicking).

This commit is contained in:
0xSeb
2015-02-02 21:18:33 +01:00
parent 8c898c78b0
commit 934ee4b816
4 changed files with 70 additions and 26 deletions
@@ -93,19 +93,37 @@ public class CraftingKeys {
// Block Key Interval (avoid multiple Runs)
if (!Helper.isSameKey(keyDown)) {
// Good key, Mouse over Inventory
ContainerManager con = new ContainerManager(guiCrafting.inventorySlots);
// Moving item to crafting table
if (keyDown != -1 && currentHoveredSlot != null) {
ContainerManager con = new ContainerManager(guiCrafting.inventorySlots);
con.move(currentHoveredSlot.slotNumber, keyDown, 1);
// TODO: Move more/all!
// TODO: Strg -> Click on Output
// TODO: Shift -> Move all!
// Shift = Move all
if (guiCrafting.isShiftKeyDown()) {
con.moveAll(currentHoveredSlot.slotNumber, keyDown);
} else {
con.move(currentHoveredSlot.slotNumber, keyDown, 1);
}
}
// Strg = Take the output
if (guiCrafting.isCtrlKeyDown()) {
if (guiCrafting.isShiftKeyDown()) {
// TODO: Strg + Shift = Empty Crafting Table
Helper.debugPrint("onTick(): [TODO] Move all items back or drop them.");
} else {
// Send mouse click on crafting output
con.clickOnCraftingOutput(true);
}
}
}
}