/** * set current crafting inventory back to the 2x2 square */ public void closeScreen() { this.connection.sendPacket(new SPacketCloseWindow(this.openContainer.windowId)); this.closeContainer(); }
/** * Resets the ItemStack held in hand and closes the window that is opened */ public void handleCloseWindow(SPacketCloseWindow packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); this.gameController.player.closeScreenAndDropStack(); }
/** * Resets the ItemStack held in hand and closes the window that is opened */ public void handleCloseWindow(SPacketCloseWindow packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); this.gameController.thePlayer.closeScreenAndDropStack(); }
/** * Resets the ItemStack held in hand and closes the window that is opened */ void handleCloseWindow(SPacketCloseWindow packetIn);