package net.minecraft.server; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; public class Packet71Weather extends Packet { public int a; public int b; public int c; public int d; public int e; public Packet71Weather() { } public Packet71Weather(Entity entity) { this.a = entity.id; this.b = MathHelper.floor(entity.locX * 32.0D); this.c = MathHelper.floor(entity.locY * 32.0D); this.d = MathHelper.floor(entity.locZ * 32.0D); if (entity instanceof EntityWeatherStorm) { this.e = 1; } } public void a(DataInputStream datainputstream) throws IOException { this.a = datainputstream.readInt(); this.e = datainputstream.readByte(); this.b = datainputstream.readInt(); this.c = datainputstream.readInt(); this.d = datainputstream.readInt(); } public void a(DataOutputStream dataoutputstream) throws IOException { dataoutputstream.writeInt(this.a); dataoutputstream.writeByte(this.e); dataoutputstream.writeInt(this.b); dataoutputstream.writeInt(this.c); dataoutputstream.writeInt(this.d); } public void a(NetHandler nethandler) { nethandler.a(this); } public int a() { return 17; } }