summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/PacketPlayOutSpawnPosition.java
blob: 92e40367e0d2a9f3cd4e2fb5b3326870eb07e772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package net.minecraft.server;

public class PacketPlayOutSpawnPosition extends Packet {

    public int x; // CraftBukkit - private -> public
    public int y; // CraftBukkit - private -> public
    public int z; // CraftBukkit - private -> public

    public PacketPlayOutSpawnPosition() {}

    public PacketPlayOutSpawnPosition(int i, int j, int k) {
        this.x = i;
        this.y = j;
        this.z = k;
    }

    public void a(PacketDataSerializer packetdataserializer) {
        this.x = packetdataserializer.readInt();
        this.y = packetdataserializer.readInt();
        this.z = packetdataserializer.readInt();
    }

    public void b(PacketDataSerializer packetdataserializer) {
        packetdataserializer.writeInt(this.x);
        packetdataserializer.writeInt(this.y);
        packetdataserializer.writeInt(this.z);
    }

    public void a(PacketPlayOutListener packetplayoutlistener) {
        packetplayoutlistener.a(this);
    }

    public boolean a() {
        return false;
    }

    public String b() {
        return String.format("x=%d, y=%d, z=%d", new Object[] { Integer.valueOf(this.x), Integer.valueOf(this.y), Integer.valueOf(this.z)});
    }

    public void handle(PacketListener packetlistener) {
        this.a((PacketPlayOutListener) packetlistener);
    }
}