Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import java.io.DataInputStream;
4import java.io.DataOutputStream;
5import java.io.IOException;
6
7public class Packet106Transaction extends Packet {
8
9 public int a;
10 public short b;
11 public boolean c;
12
13 public Packet106Transaction() {
14 }
15
16 public Packet106Transaction(int i, short short1, boolean flag) {
17 this.a = i;
18 this.b = short1;
19 this.c = flag;
20 }
21
22 public void a(NetHandler nethandler) {
23 nethandler.a(this);
24 }
25
26 public void a(DataInputStream datainputstream) throws IOException {
27 this.a = datainputstream.readByte();
28 this.b = datainputstream.readShort();
29 this.c = datainputstream.readByte() != 0;
30 }
31
32 public void a(DataOutputStream dataoutputstream) throws IOException {
33 dataoutputstream.writeByte(this.a);
34 dataoutputstream.writeShort(this.b);
35 dataoutputstream.writeByte(this.c ? 1 : 0);
36 }
37
38 public int a() {
39 return 4;
40 }
41}