Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import java.io.DataInputStream;
4import java.io.DataOutputStream;
5import java.io.IOException;
6
7public class Packet39AttachEntity extends Packet {
8
9 public int a;
10 public int b;
11
12 public Packet39AttachEntity() {
13 }
14
15 public Packet39AttachEntity(Entity entity, Entity entity1) {
16 this.a = entity.id;
17 this.b = entity1 != null ? entity1.id : -1;
18 }
19
20 public int a() {
21 return 8;
22 }
23
24 public void a(DataInputStream datainputstream) throws IOException {
25 this.a = datainputstream.readInt();
26 this.b = datainputstream.readInt();
27 }
28
29 public void a(DataOutputStream dataoutputstream) throws IOException {
30 dataoutputstream.writeInt(this.a);
31 dataoutputstream.writeInt(this.b);
32 }
33
34 public void a(NetHandler nethandler) {
35 nethandler.a(this);
36 }
37}