S36PacketSignEditorOpen .java

net.minecraft.network.play.server.S36PacketSignEditorOpen (class): members: getSignPosition, signPosition, processPacket, readPacketData, writePacketData.

net.minecraft.network.play.serverclass51 linesserver1.2 KB

Implements

API Surface (4)

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

Fields & Constants (1)

signPosition

Code Graph: Dependencies (4)

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

Full Source

S36PacketSignEditorOpen.java51 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
import net.minecraft.util.BlockPos;
8
9
public class S36PacketSignEditorOpen implements Packet<INetHandlerPlayClient>
10
{
11
    private BlockPos signPosition;
12
13
    public S36PacketSignEditorOpen()
14
    {
15
    }
16
17
    public S36PacketSignEditorOpen(BlockPos signPositionIn)
18
    {
19
        this.signPosition = signPositionIn;
20
    }
21
22
    /**
23
     * Passes this Packet on to the NetHandler for processing.
24
     */
25
    public void processPacket(INetHandlerPlayClient handler)
26
    {
27
        handler.handleSignEditorOpen(this);
28
    }
29
30
    /**
31
     * Reads the raw packet data from the data stream.
32
     */
33
    public void readPacketData(PacketBuffer buf) throws IOException
34
    {
35
        this.signPosition = buf.readBlockPos();
36
    }
37
38
    /**
39
     * Writes the raw packet data to the data stream.
40
     */
41
    public void writePacketData(PacketBuffer buf) throws IOException
42
    {
43
        buf.writeBlockPos(this.signPosition);
44
    }
45
46
    public BlockPos getSignPosition()
47
    {
48
        return this.signPosition;
49
    }
50
}
51

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