Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 38 lines 977 B view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet7UseEntity extends Packet { 8 9 public int a; 10 public int target; 11 public int c; 12 13 public Packet7UseEntity() { 14 } 15 16 public void a(DataInputStream datainputstream) throws IOException { 17 this.a = datainputstream.readInt(); 18 this.target = datainputstream.readInt(); 19 // uberbukkit 20 if (this.pvn >= 5) this.c = datainputstream.readByte(); 21 else this.c = 0; 22 } 23 24 public void a(DataOutputStream dataoutputstream) throws IOException { 25 dataoutputstream.writeInt(this.a); 26 dataoutputstream.writeInt(this.target); 27 // uberbukkit 28 if (this.pvn >= 5) dataoutputstream.writeByte(this.c); 29 } 30 31 public void a(NetHandler nethandler) { 32 nethandler.a(this); 33 } 34 35 public int a() { 36 return 8 + (this.pvn >= 5 ? 1 : 0); // uberbukkit 37 } 38}