/** * Displays the available command-completion options the server knows of */ public void handleTabComplete(SPacketTabComplete packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); String[] astring = packetIn.getMatches(); Arrays.sort((Object[])astring); if (this.gameController.currentScreen instanceof ITabCompleter) { ((ITabCompleter)this.gameController.currentScreen).setCompletions(astring); } }
/** * Displays the available command-completion options the server knows of */ public void handleTabComplete(SPacketTabComplete packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); String[] astring = packetIn.getMatches(); if (this.gameController.currentScreen instanceof ITabCompleter) { ((ITabCompleter)this.gameController.currentScreen).setCompletions(astring); } }