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

项目:Zombe-Modpack    文件:NetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
public void processKeepAlive(CPacketKeepAlive packetIn)
{
    if (packetIn.getKey() == this.keepAliveId)
    {
        int i = (int)(this.currentTimeMillis() - this.lastPingTime);
        this.playerEntity.ping = (this.playerEntity.ping * 3 + i) / 4;
    }
}
项目:Backmemed    文件:NetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
public void processKeepAlive(CPacketKeepAlive packetIn)
{
    if (packetIn.getKey() == this.keepAliveId)
    {
        int i = (int)(this.currentTimeMillis() - this.lastPingTime);
        this.playerEntity.ping = (this.playerEntity.ping * 3 + i) / 4;
    }
}
项目:Backmemed    文件:GuiDownloadTerrain.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    ++this.progress;

    if (this.progress % 20 == 0)
    {
        this.connection.sendPacket(new CPacketKeepAlive());
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
public void processKeepAlive(CPacketKeepAlive packetIn)
{
    if (packetIn.getKey() == this.keepAliveId)
    {
        int i = (int)(this.currentTimeMillis() - this.lastPingTime);
        this.playerEntity.ping = (this.playerEntity.ping * 3 + i) / 4;
    }
}
项目:CustomWorldGen    文件:GuiDownloadTerrain.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    ++this.progress;

    if (this.progress % 20 == 0)
    {
        this.connection.sendPacket(new CPacketKeepAlive());
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
public void processKeepAlive(CPacketKeepAlive packetIn)
{
    if (packetIn.getKey() == this.keepAliveId)
    {
        int i = (int)(this.currentTimeMillis() - this.lastPingTime);
        this.playerEntity.ping = (this.playerEntity.ping * 3 + i) / 4;
    }
}
项目:ExpandedRailsMod    文件:GuiDownloadTerrain.java   
/**
 * Called from the main game loop to update the screen.
 */
public void updateScreen()
{
    ++this.progress;

    if (this.progress % 20 == 0)
    {
        this.connection.sendPacket(new CPacketKeepAlive());
    }
}
项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
public void handleKeepAlive(SPacketKeepAlive packetIn)
{
    this.sendPacket(new CPacketKeepAlive(packetIn.getId()));
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
public void handleKeepAlive(SPacketKeepAlive packetIn)
{
    this.sendPacket(new CPacketKeepAlive(packetIn.getId()));
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
public void handleKeepAlive(SPacketKeepAlive packetIn)
{
    this.sendPacket(new CPacketKeepAlive(packetIn.getId()));
}
项目:CrystalMod    文件:FakeNetHandlerPlayServer.java   
@Override
public void processKeepAlive(CPacketKeepAlive p_147353_1_) {
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
public void handleKeepAlive(SPacketKeepAlive packetIn)
{
    this.sendPacket(new CPacketKeepAlive(packetIn.getId()));
}
项目:EnderIO    文件:FakeNetHandlerPlayServer.java   
@Override
public void processKeepAlive(@Nonnull CPacketKeepAlive p_147353_1_) {
}
项目:DankNull    文件:NetServerHandlerFake.java   
@Override
public void processKeepAlive(CPacketKeepAlive packetIn) {

}
项目:Backmemed    文件:INetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
void processKeepAlive(CPacketKeepAlive packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayServer.java   
/**
 * Updates a players' ping statistics
 */
void processKeepAlive(CPacketKeepAlive packetIn);