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