Java 类net.minecraft.network.play.client.CPacketTabComplete 实例源码

项目:ClientAPI    文件:PluginFinder.java   
/**
 * Finds the plugin list, the callback is called
 * when the request times out or the list has been
 * found.
 *
 * @param callback Plugin Response callback
 * @param timeout Timeout in MS
 */
public final void find(Consumer<PResponse> callback, long timeout) {
    packetTimer.reset();
    this.timeout = timeout;

    ClientAPI.EVENT_BUS.subscribe(this);
    this.callback = callback;
    mc.player.connection.sendPacket(new CPacketTabComplete("/", null, false));
}
项目:Zombe-Modpack    文件:NetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
public void processTabComplete(CPacketTabComplete packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    List<String> list = Lists.<String>newArrayList();

    for (String s : this.serverController.getTabCompletions(this.playerEntity, packetIn.getMessage(), packetIn.getTargetBlock(), packetIn.hasTargetBlock()))
    {
        list.add(s);
    }

    this.playerEntity.connection.sendPacket(new SPacketTabComplete((String[])list.toArray(new String[list.size()])));
}
项目:Backmemed    文件:NetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
public void processTabComplete(CPacketTabComplete packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    List<String> list = Lists.<String>newArrayList();

    for (String s : this.serverController.getTabCompletions(this.playerEntity, packetIn.getMessage(), packetIn.getTargetBlock(), packetIn.hasTargetBlock()))
    {
        list.add(s);
    }

    this.playerEntity.connection.sendPacket(new SPacketTabComplete((String[])list.toArray(new String[list.size()])));
}
项目:Backmemed    文件:TabCompleter.java   
private void requestCompletions(String prefix)
{
    if (prefix.length() >= 1)
    {
        Minecraft.getMinecraft().player.connection.sendPacket(new CPacketTabComplete(prefix, this.getTargetBlockPos(), this.hasTargetBlock));
        this.requestedCompletions = true;
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
public void processTabComplete(CPacketTabComplete packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    List<String> list = Lists.<String>newArrayList();

    for (String s : this.serverController.getTabCompletions(this.playerEntity, packetIn.getMessage(), packetIn.getTargetBlock(), packetIn.hasTargetBlock()))
    {
        list.add(s);
    }

    this.playerEntity.connection.sendPacket(new SPacketTabComplete((String[])list.toArray(new String[list.size()])));
}
项目:CustomWorldGen    文件:TabCompleter.java   
private void requestCompletions(String prefix)
{
    if (prefix.length() >= 1)
    {
        net.minecraftforge.client.ClientCommandHandler.instance.autoComplete(prefix);
        Minecraft.getMinecraft().thePlayer.connection.sendPacket(new CPacketTabComplete(prefix, this.getTargetBlockPos(), this.hasTargetBlock));
        this.requestedCompletions = true;
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
public void processTabComplete(CPacketTabComplete packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.playerEntity.getServerWorld());
    List<String> list = Lists.<String>newArrayList();

    for (String s : this.serverController.getTabCompletions(this.playerEntity, packetIn.getMessage(), packetIn.getTargetBlock(), packetIn.hasTargetBlock()))
    {
        list.add(s);
    }

    this.playerEntity.connection.sendPacket(new SPacketTabComplete((String[])list.toArray(new String[list.size()])));
}
项目:CrystalMod    文件:FakeNetHandlerPlayServer.java   
@Override
public void processTabComplete(CPacketTabComplete p_147341_1_) {
}
项目:EnderIO    文件:FakeNetHandlerPlayServer.java   
@Override
public void processTabComplete(@Nonnull CPacketTabComplete p_147341_1_) {
}
项目:DankNull    文件:NetServerHandlerFake.java   
@Override
public void processTabComplete(CPacketTabComplete packetIn) {

}
项目:Backmemed    文件:INetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
void processTabComplete(CPacketTabComplete packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayServer.java   
/**
 * Retrieves possible tab completions for the requested command string and sends them to the client
 */
void processTabComplete(CPacketTabComplete packetIn);