blob: 16d47650e2843a9c9833b2df1430ab485c1232c4 (
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
45
46
47
|
package net.minecraft.server;
import java.io.IOException; // CraftBukkit
public class PacketHandshakingInSetProtocol extends Packet {
private int a;
public String b; // CraftBukkit private -> public
public int c; // CraftBukkit private -> public
private EnumProtocol d;
public PacketHandshakingInSetProtocol() {}
public void a(PacketDataSerializer packetdataserializer) throws IOException { // CraftBukkit - added throws
this.a = packetdataserializer.a();
this.b = packetdataserializer.c(255);
this.c = packetdataserializer.readUnsignedShort();
this.d = EnumProtocol.a(packetdataserializer.a());
}
public void b(PacketDataSerializer packetdataserializer) throws IOException { // CraftBukkit - added throws
packetdataserializer.b(this.a);
packetdataserializer.a(this.b);
packetdataserializer.writeShort(this.c);
packetdataserializer.b(this.d.c());
}
public void a(PacketHandshakingInListener packethandshakinginlistener) {
packethandshakinginlistener.a(this);
}
public boolean a() {
return true;
}
public EnumProtocol c() {
return this.d;
}
public int d() {
return this.a;
}
public void handle(PacketListener packetlistener) {
this.a((PacketHandshakingInListener) packetlistener);
}
}
|