mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
commit
299efaf248
4 changed files with 13 additions and 13 deletions
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>mcprotocollib</artifactId>
|
||||
<version>1.12.1-1-SNAPSHOT</version>
|
||||
<version>1.12.2-1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>MCProtocolLib</name>
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.github.steveice10.mc.protocol;
|
|||
|
||||
public class MinecraftConstants {
|
||||
// General Constants
|
||||
public static final String GAME_VERSION = "1.12.1";
|
||||
public static final int PROTOCOL_VERSION = 338;
|
||||
public static final String GAME_VERSION = "1.12.2";
|
||||
public static final int PROTOCOL_VERSION = 340;
|
||||
|
||||
// General Key Constants
|
||||
public static final String PROFILE_KEY = "profile";
|
||||
|
|
|
@ -7,27 +7,27 @@ import com.github.steveice10.packetlib.io.NetOutput;
|
|||
import java.io.IOException;
|
||||
|
||||
public class ClientKeepAlivePacket extends MinecraftPacket {
|
||||
private int id;
|
||||
private long id;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private ClientKeepAlivePacket() {
|
||||
}
|
||||
|
||||
public ClientKeepAlivePacket(int id) {
|
||||
public ClientKeepAlivePacket(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getPingId() {
|
||||
public long getPingId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(NetInput in) throws IOException {
|
||||
this.id = in.readVarInt();
|
||||
this.id = in.readLong();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(NetOutput out) throws IOException {
|
||||
out.writeVarInt(this.id);
|
||||
out.writeLong(this.id);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,27 +7,27 @@ import com.github.steveice10.packetlib.io.NetOutput;
|
|||
import java.io.IOException;
|
||||
|
||||
public class ServerKeepAlivePacket extends MinecraftPacket {
|
||||
private int id;
|
||||
private long id;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private ServerKeepAlivePacket() {
|
||||
}
|
||||
|
||||
public ServerKeepAlivePacket(int id) {
|
||||
public ServerKeepAlivePacket(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getPingId() {
|
||||
public long getPingId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(NetInput in) throws IOException {
|
||||
this.id = in.readVarInt();
|
||||
this.id = in.readLong();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(NetOutput out) throws IOException {
|
||||
out.writeVarInt(this.id);
|
||||
out.writeLong(this.id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue