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