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 Packet71Weather extends Packet {
8
9 public int a;
10 public int b;
11 public int c;
12 public int d;
13 public int e;
14
15 public Packet71Weather() {
16 }
17
18 public Packet71Weather(Entity entity) {
19 this.a = entity.id;
20 this.b = MathHelper.floor(entity.locX * 32.0D);
21 this.c = MathHelper.floor(entity.locY * 32.0D);
22 this.d = MathHelper.floor(entity.locZ * 32.0D);
23 if (entity instanceof EntityWeatherStorm) {
24 this.e = 1;
25 }
26 }
27
28 public void a(DataInputStream datainputstream) throws IOException {
29 this.a = datainputstream.readInt();
30 this.e = datainputstream.readByte();
31 this.b = datainputstream.readInt();
32 this.c = datainputstream.readInt();
33 this.d = datainputstream.readInt();
34 }
35
36 public void a(DataOutputStream dataoutputstream) throws IOException {
37 dataoutputstream.writeInt(this.a);
38 dataoutputstream.writeByte(this.e);
39 dataoutputstream.writeInt(this.b);
40 dataoutputstream.writeInt(this.c);
41 dataoutputstream.writeInt(this.d);
42 }
43
44 public void a(NetHandler nethandler) {
45 nethandler.a(this);
46 }
47
48 public int a() {
49 return 17;
50 }
51}