C11PacketEnchantItem .java

net.minecraft.network.play.client.C11PacketEnchantItem (class, 59 lines): members: getButton, button, getWindowId, windowId, processPacket, readPacketData.

net.minecraft.network.play.clientclass59 linesclient1.3 KB

Implements

API Surface (5)

void processPacket(INetHandlerPlayServer handler)
void readPacketData(PacketBuffer buf)
void writePacketData(PacketBuffer buf)
int getWindowId()
int getButton()

Fields & Constants (2)

windowId
button

Code Graph: Dependencies (3)

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

Full Source

C11PacketEnchantItem.java59 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayServer;
7
8
public class C11PacketEnchantItem implements Packet<INetHandlerPlayServer>
9
{
10
    private int windowId;
11
    private int button;
12
13
    public C11PacketEnchantItem()
14
    {
15
    }
16
17
    public C11PacketEnchantItem(int windowId, int button)
18
    {
19
        this.windowId = windowId;
20
        this.button = button;
21
    }
22
23
    /**
24
     * Passes this Packet on to the NetHandler for processing.
25
     */
26
    public void processPacket(INetHandlerPlayServer handler)
27
    {
28
        handler.processEnchantItem(this);
29
    }
30
31
    /**
32
     * Reads the raw packet data from the data stream.
33
     */
34
    public void readPacketData(PacketBuffer buf) throws IOException
35
    {
36
        this.windowId = buf.readByte();
37
        this.button = buf.readByte();
38
    }
39
40
    /**
41
     * Writes the raw packet data to the data stream.
42
     */
43
    public void writePacketData(PacketBuffer buf) throws IOException
44
    {
45
        buf.writeByte(this.windowId);
46
        buf.writeByte(this.button);
47
    }
48
49
    public int getWindowId()
50
    {
51
        return this.windowId;
52
    }
53
54
    public int getButton()
55
    {
56
        return this.button;
57
    }
58
}
59

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