| 76 | * https://media.discordapp.net/attachments/955857188130283621/1144293552550068224/image.png?width=593&height=456*/ |
| 77 | |
| 78 | public static void move(int from, int to) { |
| 79 | ScreenHandler handler = mc.player.currentScreenHandler; |
| 80 | |
| 81 | Int2ObjectArrayMap<ItemStack> stack = new Int2ObjectArrayMap<>(); |
| 82 | stack.put(to, handler.getSlot(to).getStack()); |
| 83 | |
| 84 | mc.getNetworkHandler().sendPacket(new ClickSlotC2SPacket(handler.syncId, handler.getRevision(), PlayerInventory.MAIN_SIZE + from, to, SlotActionType.SWAP, handler.getCursorStack().copy(), stack)); |
| 85 | } |
| 86 | |
| 87 | public Block[] xd() { |
| 88 | Block[] blocks = new Block[1]; |