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 Packet33RelEntityMoveLook extends Packet30Entity {
8
9 public Packet33RelEntityMoveLook() {
10 this.g = true;
11 }
12
13 public Packet33RelEntityMoveLook(int i, byte b0, byte b1, byte b2, byte b3, byte b4) {
14 super(i);
15 this.b = b0;
16 this.c = b1;
17 this.d = b2;
18 this.e = b3;
19 this.f = b4;
20 this.g = true;
21 }
22
23 public void a(DataInputStream datainputstream) throws IOException {
24 super.a(datainputstream);
25 this.b = datainputstream.readByte();
26 this.c = datainputstream.readByte();
27 this.d = datainputstream.readByte();
28 this.e = datainputstream.readByte();
29 this.f = datainputstream.readByte();
30 }
31
32 public void a(DataOutputStream dataoutputstream) throws IOException {
33 super.a(dataoutputstream);
34 dataoutputstream.writeByte(this.b);
35 dataoutputstream.writeByte(this.c);
36 dataoutputstream.writeByte(this.d);
37 dataoutputstream.writeByte(this.e);
38 dataoutputstream.writeByte(this.f);
39 }
40
41 public int a() {
42 return 9;
43 }
44}