C00PacketLoginStart .java

net.minecraft.network.login.client.C00PacketLoginStart (class, 52 lines): members: getProfile, profile, processPacket, readPacketData, writePacketData.

net.minecraft.network.login.clientclass52 linesclient1.2 KB

Implements

API Surface (4)

void readPacketData(PacketBuffer buf)
void writePacketData(PacketBuffer buf)
void processPacket(INetHandlerLoginServer handler)
GameProfile getProfile()

Fields & Constants (1)

profile

Code Graph: Dependencies (3)

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

Full Source

C00PacketLoginStart.java52 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.network.login.client;
2
3
import com.mojang.authlib.GameProfile;
4
import java.io.IOException;
5
import java.util.UUID;
6
import net.minecraft.network.Packet;
7
import net.minecraft.network.PacketBuffer;
8
import net.minecraft.network.login.INetHandlerLoginServer;
9
10
public class C00PacketLoginStart implements Packet<INetHandlerLoginServer>
11
{
12
    private GameProfile profile;
13
14
    public C00PacketLoginStart()
15
    {
16
    }
17
18
    public C00PacketLoginStart(GameProfile profileIn)
19
    {
20
        this.profile = profileIn;
21
    }
22
23
    /**
24
     * Reads the raw packet data from the data stream.
25
     */
26
    public void readPacketData(PacketBuffer buf) throws IOException
27
    {
28
        this.profile = new GameProfile((UUID)null, buf.readStringFromBuffer(16));
29
    }
30
31
    /**
32
     * Writes the raw packet data to the data stream.
33
     */
34
    public void writePacketData(PacketBuffer buf) throws IOException
35
    {
36
        buf.writeString(this.profile.getName());
37
    }
38
39
    /**
40
     * Passes this Packet on to the NetHandler for processing.
41
     */
42
    public void processPacket(INetHandlerLoginServer handler)
43
    {
44
        handler.processLoginStart(this);
45
    }
46
47
    public GameProfile getProfile()
48
    {
49
        return this.profile;
50
    }
51
}
52

Deobfuscated MCP 1.8.9 source of C00PacketLoginStart from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/login/client/C00PacketLoginStart.java), stored verbatim.