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 Packet6SpawnPosition extends Packet {
8
9 public int x;
10 public int y;
11 public int z;
12
13 public Packet6SpawnPosition() {
14 }
15
16 public Packet6SpawnPosition(int i, int j, int k) {
17 this.x = i;
18 this.y = j;
19 this.z = k;
20 }
21
22 public void a(DataInputStream datainputstream) throws IOException {
23 this.x = datainputstream.readInt();
24 this.y = datainputstream.readInt();
25 this.z = datainputstream.readInt();
26 }
27
28 public void a(DataOutputStream dataoutputstream) throws IOException {
29 dataoutputstream.writeInt(this.x);
30 dataoutputstream.writeInt(this.y);
31 dataoutputstream.writeInt(this.z);
32 }
33
34 public void a(NetHandler nethandler) {
35 nethandler.a(this);
36 }
37
38 public int a() {
39 return 12;
40 }
41}