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 Packet131 extends Packet {
8
9 public short a;
10 public short b;
11 public byte[] c;
12
13 public Packet131() {
14 this.k = true;
15 }
16
17 public Packet131(short short1, short short2, byte[] abyte) {
18 this.k = true;
19 this.a = short1;
20 this.b = short2;
21 this.c = abyte;
22 }
23
24 public void a(DataInputStream datainputstream) throws IOException {
25 this.a = datainputstream.readShort();
26 this.b = datainputstream.readShort();
27 this.c = new byte[datainputstream.readByte() & 255];
28 datainputstream.readFully(this.c);
29 }
30
31 public void a(DataOutputStream dataoutputstream) throws IOException {
32 dataoutputstream.writeShort(this.a);
33 dataoutputstream.writeShort(this.b);
34 dataoutputstream.writeByte(this.c.length);
35 dataoutputstream.write(this.c);
36 }
37
38 public void a(NetHandler nethandler) {
39 nethandler.a(this);
40 }
41
42 public int a() {
43 return 4 + this.c.length;
44 }
45}