Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 65 lines 1.7 kB view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet25EntityPainting extends Packet { 8 9 public int a; 10 public int b; 11 public int c; 12 public int d; 13 public int e; 14 public String f; 15 16 public Packet25EntityPainting() { 17 } 18 19 public Packet25EntityPainting(EntityPainting entitypainting) { 20 this.a = entitypainting.id; 21 this.b = entitypainting.b; 22 this.c = entitypainting.c; 23 this.d = entitypainting.d; 24 this.e = entitypainting.a; 25 this.f = entitypainting.e.A; 26 } 27 28 public void a(DataInputStream datainputstream) throws IOException { 29 this.a = datainputstream.readInt(); 30 // uberbukkit 31 if (this.pvn >= 11) { 32 this.f = a(datainputstream, EnumArt.z); 33 } else { 34 this.f = datainputstream.readUTF(); 35 } 36 37 this.b = datainputstream.readInt(); 38 this.c = datainputstream.readInt(); 39 this.d = datainputstream.readInt(); 40 this.e = datainputstream.readInt(); 41 } 42 43 public void a(DataOutputStream dataoutputstream) throws IOException { 44 dataoutputstream.writeInt(this.a); 45 // uberbukkit 46 if (this.pvn >= 11) { 47 a(this.f, dataoutputstream); 48 } else { 49 dataoutputstream.writeUTF(this.f); 50 } 51 52 dataoutputstream.writeInt(this.b); 53 dataoutputstream.writeInt(this.c); 54 dataoutputstream.writeInt(this.d); 55 dataoutputstream.writeInt(this.e); 56 } 57 58 public void a(NetHandler nethandler) { 59 nethandler.a(this); 60 } 61 62 public int a() { 63 return 24; 64 } 65}