Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 49 lines 1.5 kB view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet13PlayerLookMove extends Packet10Flying { 8 9 public Packet13PlayerLookMove() { 10 this.hasLook = true; 11 this.h = true; 12 } 13 14 public Packet13PlayerLookMove(double d0, double d1, double d2, double d3, float f, float f1, boolean flag) { 15 this.x = d0; 16 this.y = d1; 17 this.stance = d2; 18 this.z = d3; 19 this.yaw = f; 20 this.pitch = f1; 21 this.g = flag; 22 this.hasLook = true; 23 this.h = true; 24 } 25 26 public void a(DataInputStream datainputstream) throws IOException { 27 this.x = datainputstream.readDouble(); 28 this.y = datainputstream.readDouble(); 29 this.stance = datainputstream.readDouble(); 30 this.z = datainputstream.readDouble(); 31 this.yaw = datainputstream.readFloat(); 32 this.pitch = datainputstream.readFloat(); 33 super.a(datainputstream); 34 } 35 36 public void a(DataOutputStream dataoutputstream) throws IOException { 37 dataoutputstream.writeDouble(this.x); 38 dataoutputstream.writeDouble(this.y); 39 dataoutputstream.writeDouble(this.stance); 40 dataoutputstream.writeDouble(this.z); 41 dataoutputstream.writeFloat(this.yaw); 42 dataoutputstream.writeFloat(this.pitch); 43 super.a(dataoutputstream); 44 } 45 46 public int a() { 47 return 41; 48 } 49}