Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 45 lines 1.1 kB view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet100OpenWindow extends Packet { 8 9 public int a; 10 public int b; 11 public String c; 12 public int d; 13 14 public Packet100OpenWindow() { 15 } 16 17 public Packet100OpenWindow(int i, int j, String s, int k) { 18 this.a = i; 19 this.b = j; 20 this.c = s; 21 this.d = k; 22 } 23 24 public void a(NetHandler nethandler) { 25 nethandler.a(this); 26 } 27 28 public void a(DataInputStream datainputstream) throws IOException { 29 this.a = datainputstream.readByte(); 30 this.b = datainputstream.readByte(); 31 this.c = datainputstream.readUTF(); 32 this.d = datainputstream.readByte(); 33 } 34 35 public void a(DataOutputStream dataoutputstream) throws IOException { 36 dataoutputstream.writeByte(this.a); 37 dataoutputstream.writeByte(this.b); 38 dataoutputstream.writeUTF(this.c); 39 dataoutputstream.writeByte(this.d); 40 } 41 42 public int a() { 43 return 3 + this.c.length(); 44 } 45}