S32PacketConfirmTransaction .java

net.minecraft.network.play.server.S32PacketConfirmTransaction (class): members: field_148893_c, func_148888_e, getActionNumber, actionNumber, getWindowId.

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

Implements

API Surface (6)

void processPacket(INetHandlerPlayClient handler)
void readPacketData(PacketBuffer buf)
void writePacketData(PacketBuffer buf)
int getWindowId()
short getActionNumber()
boolean func_148888_e()

Fields & Constants (3)

windowId
actionNumber
field_148893_c

Code Graph: Dependencies (3)

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

Full Source

S32PacketConfirmTransaction.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 S32PacketConfirmTransaction implements Packet<INetHandlerPlayClient>
9
{
10
    private int windowId;
11
    private short actionNumber;
12
    private boolean field_148893_c;
13
14
    public S32PacketConfirmTransaction()
15
    {
16
    }
17
18
    public S32PacketConfirmTransaction(int windowIdIn, short actionNumberIn, boolean p_i45182_3_)
19
    {
20
        this.windowId = windowIdIn;
21
        this.actionNumber = actionNumberIn;
22
        this.field_148893_c = p_i45182_3_;
23
    }
24
25
    /**
26
     * Passes this Packet on to the NetHandler for processing.
27
     */
28
    public void processPacket(INetHandlerPlayClient handler)
29
    {
30
        handler.handleConfirmTransaction(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.actionNumber = buf.readShort();
40
        this.field_148893_c = buf.readBoolean();
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.actionNumber);
50
        buf.writeBoolean(this.field_148893_c);
51
    }
52
53
    public int getWindowId()
54
    {
55
        return this.windowId;
56
    }
57
58
    public short getActionNumber()
59
    {
60
        return this.actionNumber;
61
    }
62
63
    public boolean func_148888_e()
64
    {
65
        return this.field_148893_c;
66
    }
67
}
68

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