Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 60 lines 1.5 kB view raw
1package net.minecraft.server; 2 3import java.io.DataInputStream; 4import java.io.DataOutputStream; 5import java.io.IOException; 6 7public class Packet53BlockChange extends Packet { 8 9 public int a; 10 public int b; 11 public int c; 12 public int material; 13 public int data; 14 15 public Packet53BlockChange() { 16 this.k = true; 17 } 18 19 public Packet53BlockChange(int i, int j, int k, int material, int data) { 20 this.k = true; 21 this.a = i; 22 this.b = j; 23 this.c = k; 24 this.material = material; 25 this.data = data; 26 } 27 28 public Packet53BlockChange(int i, int j, int k, World world) { 29 this.k = true; 30 this.a = i; 31 this.b = j; 32 this.c = k; 33 this.material = world.getTypeId(i, j, k); 34 this.data = world.getData(i, j, k); 35 } 36 37 public void a(DataInputStream datainputstream) throws IOException { 38 this.a = datainputstream.readInt(); 39 this.b = datainputstream.read(); 40 this.c = datainputstream.readInt(); 41 this.material = datainputstream.read(); 42 this.data = datainputstream.read(); 43 } 44 45 public void a(DataOutputStream dataoutputstream) throws IOException { 46 dataoutputstream.writeInt(this.a); 47 dataoutputstream.write(this.b); 48 dataoutputstream.writeInt(this.c); 49 dataoutputstream.write(this.material); 50 dataoutputstream.write(this.data); 51 } 52 53 public void a(NetHandler nethandler) { 54 nethandler.a(this); 55 } 56 57 public int a() { 58 return 11; 59 } 60}