Packet .java

net.minecraft.network.Packet (interface, 22 lines): interface declaring 3 methods. members: processPacket, readPacketData, writePacketData.

net.minecraft.networkinterface22 linescommonextends INetHandler>494 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (1)

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

Full Source

Packet.java22 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.network;
2
3
import java.io.IOException;
4
5
public interface Packet<T extends INetHandler>
6
{
7
    /**
8
     * Reads the raw packet data from the data stream.
9
     */
10
    void readPacketData(PacketBuffer buf) throws IOException;
11
12
    /**
13
     * Writes the raw packet data to the data stream.
14
     */
15
    void writePacketData(PacketBuffer buf) throws IOException;
16
17
    /**
18
     * Passes this Packet on to the NetHandler for processing.
19
     */
20
    void processPacket(T handler);
21
}
22

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