Java 类net.minecraft.util.ITabCompleter 实例源码
项目:Zombe-Modpack
文件:NetHandlerPlayClient.java
/**
* 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);
}
}
项目:Backmemed
文件:NetHandlerPlayClient.java
/**
* 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);
}
}
项目:CustomWorldGen
文件:NetHandlerPlayClient.java
/**
* 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);
}
}
项目:ExpandedRailsMod
文件:NetHandlerPlayClient.java
/**
* 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);
}
}