mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Update CraftBukkit to Minecraft 1.7.2
This commit is contained in:
1 parent
ff8b70fbb7
commit
2726696652
349 files changed
+14339
-11287
No files matched your search
@@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user