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 Packet9Respawn extends Packet {
8
9 public byte a;
10 public long seed; // uberbukkit
11
12 public Packet9Respawn() {
13 }
14
15 public Packet9Respawn(byte b0, long seed) {
16 this.a = b0;
17 this.seed = seed; // uberbukkit
18 }
19
20 public void a(NetHandler nethandler) {
21 nethandler.a(this);
22 }
23
24 public void a(DataInputStream datainputstream) throws IOException {
25 // uberbukkit
26 if (this.pvn >= 12) {
27 this.a = datainputstream.readByte();
28 } else {
29 this.a = 0;
30 }
31
32 if (this.pvn >= 2000) {
33 this.seed = datainputstream.readLong();
34 } else {
35 this.seed = -1L;
36 }
37 }
38
39 public void a(DataOutputStream dataoutputstream) throws IOException {
40 // uberbukkit
41 if (this.pvn >= 12) {
42 dataoutputstream.writeByte(this.a);
43 }
44
45 if (this.pvn >= 2000) {
46 dataoutputstream.writeLong(this.seed);
47 }
48 }
49
50 public int a() {
51 // uberbukkit
52 return (this.pvn >= 12 ? 1 : 0) + (this.pvn >= 2000 ? 8 : 0);
53 }
54}