S31PacketWindowProperty .java

net.minecraft.network.play.server.S31PacketWindowProperty (class, 68 lines): members: getVarIndex, getVarValue, varIndex, varValue, getWindowId, windowId.

net.minecraft.network.play.serverclass68 linesserver1.5 KB

Implements

API Surface (6)

void processPacket(INetHandlerPlayClient handler)
void readPacketData(PacketBuffer buf)
void writePacketData(PacketBuffer buf)
int getWindowId()
int getVarIndex()
int getVarValue()

Fields & Constants (3)

windowId
varIndex
varValue

Code Graph: Dependencies (3)

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

Full Source

S31PacketWindowProperty.java68 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 S31PacketWindowProperty implements Packet<INetHandlerPlayClient>
9
{
10
    private int windowId;
11
    private int varIndex;
12
    private int varValue;
13
14
    public S31PacketWindowProperty()
15
    {
16
    }
17
18
    public S31PacketWindowProperty(int windowIdIn, int varIndexIn, int varValueIn)
19
    {
20
        this.windowId = windowIdIn;
21
        this.varIndex = varIndexIn;
22
        this.varValue = varValueIn;
23
    }
24
25
    /**
26
     * Passes this Packet on to the NetHandler for processing.
27
     */
28
    public void processPacket(INetHandlerPlayClient handler)
29
    {
30
        handler.handleWindowProperty(this);
31
    }
32
33
    /**
34
     * Reads the raw packet data from the data stream.
35
     */
36
    public void readPacketData(PacketBuffer buf) throws IOException
37
    {
38
        this.windowId = buf.readUnsignedByte();
39
        this.varIndex = buf.readShort();
40
        this.varValue = buf.readShort();
41
    }
42
43
    /**
44
     * Writes the raw packet data to the data stream.
45
     */
46
    public void writePacketData(PacketBuffer buf) throws IOException
47
    {
48
        buf.writeByte(this.windowId);
49
        buf.writeShort(this.varIndex);
50
        buf.writeShort(this.varValue);
51
    }
52
53
    public int getWindowId()
54
    {
55
        return this.windowId;
56
    }
57
58
    public int getVarIndex()
59
    {
60
        return this.varIndex;
61
    }
62
63
    public int getVarValue()
64
    {
65
        return this.varValue;
66
    }
67
}
68

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