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 Packet50PreChunk extends Packet {
8
9 public int a;
10 public int b;
11 public boolean c;
12
13 public Packet50PreChunk() {
14 this.k = false;
15 }
16
17 public Packet50PreChunk(int i, int j, boolean flag) {
18 this.k = false;
19 this.a = i;
20 this.b = j;
21 this.c = flag;
22 }
23
24 public void a(DataInputStream datainputstream) throws IOException {
25 this.a = datainputstream.readInt();
26 this.b = datainputstream.readInt();
27 this.c = datainputstream.read() != 0;
28 }
29
30 public void a(DataOutputStream dataoutputstream) throws IOException {
31 dataoutputstream.writeInt(this.a);
32 dataoutputstream.writeInt(this.b);
33 dataoutputstream.write(this.c ? 1 : 0);
34 }
35
36 public void a(NetHandler nethandler) {
37 nethandler.a(this);
38 }
39
40 public int a() {
41 return 9;
42 }
43}