S00PacketKeepAlive .java

net.minecraft.network.play.server.S00PacketKeepAlive (class): members: func_149134_c, id, processPacket, readPacketData, writePacketData. imports: Packet.

net.minecraft.network.play.serverclass50 linesserver1.1 KB

Implements

API Surface (4)

void processPacket(INetHandlerPlayClient handler)
void readPacketData(PacketBuffer buf)
void writePacketData(PacketBuffer buf)
int func_149134_c()

Fields & Constants (1)

id

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

S00PacketKeepAlive.java50 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
8
public class S00PacketKeepAlive implements Packet<INetHandlerPlayClient>
9
{
10
    private int id;
11
12
    public S00PacketKeepAlive()
13
    {
14
    }
15
16
    public S00PacketKeepAlive(int idIn)
17
    {
18
        this.id = idIn;
19
    }
20
21
    /**
22
     * Passes this Packet on to the NetHandler for processing.
23
     */
24
    public void processPacket(INetHandlerPlayClient handler)
25
    {
26
        handler.handleKeepAlive(this);
27
    }
28
29
    /**
30
     * Reads the raw packet data from the data stream.
31
     */
32
    public void readPacketData(PacketBuffer buf) throws IOException
33
    {
34
        this.id = buf.readVarIntFromBuffer();
35
    }
36
37
    /**
38
     * Writes the raw packet data to the data stream.
39
     */
40
    public void writePacketData(PacketBuffer buf) throws IOException
41
    {
42
        buf.writeVarIntToBuffer(this.id);
43
    }
44
45
    public int func_149134_c()
46
    {
47
        return this.id;
48
    }
49
}
50

Deobfuscated MCP 1.8.9 source of S00PacketKeepAlive from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S00PacketKeepAlive.java), stored verbatim.