S2EPacketCloseWindow .java

net.minecraft.network.play.server.S2EPacketCloseWindow (class): members: windowId, processPacket, readPacketData, writePacketData. imports: PacketBuffer.

net.minecraft.network.play.serverclass45 linesserver1.0 KB

Implements

API Surface (3)

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

Fields & Constants (1)

windowId

Code Graph: Dependencies (3)

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

Full Source

S2EPacketCloseWindow.java45 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 S2EPacketCloseWindow implements Packet<INetHandlerPlayClient>
9
{
10
    private int windowId;
11
12
    public S2EPacketCloseWindow()
13
    {
14
    }
15
16
    public S2EPacketCloseWindow(int windowIdIn)
17
    {
18
        this.windowId = windowIdIn;
19
    }
20
21
    /**
22
     * Passes this Packet on to the NetHandler for processing.
23
     */
24
    public void processPacket(INetHandlerPlayClient handler)
25
    {
26
        handler.handleCloseWindow(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.windowId = buf.readUnsignedByte();
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.writeByte(this.windowId);
43
    }
44
}
45

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