Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 32 lines 914 B view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet11PlayerPosition extends Packet10Flying { 8 9 public Packet11PlayerPosition() { 10 this.h = true; 11 } 12 13 public void a(DataInputStream datainputstream) throws IOException { 14 this.x = datainputstream.readDouble(); 15 this.y = datainputstream.readDouble(); 16 this.stance = datainputstream.readDouble(); 17 this.z = datainputstream.readDouble(); 18 super.a(datainputstream); 19 } 20 21 public void a(DataOutputStream dataoutputstream) throws IOException { 22 dataoutputstream.writeDouble(this.x); 23 dataoutputstream.writeDouble(this.y); 24 dataoutputstream.writeDouble(this.stance); 25 dataoutputstream.writeDouble(this.z); 26 super.a(dataoutputstream); 27 } 28 29 public int a() { 30 return 33; 31 } 32}