MCPcopy Create free account
hub / github.com/SplashAni/RandomMeteor / move

Method move

src/main/java/random/meteor/utils/Utils.java:78–85  ·  view source on GitHub ↗
(int from, int to)

Source from the content-addressed store, hash-verified

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];

Callers 3

onTickMethod · 0.95
onTickMethod · 0.95
onTickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected