mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Update to 20w19a
This commit is contained in:
parent
5dae5286db
commit
b0b383a53d
3 changed files with 6 additions and 3 deletions
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
|||
|
||||
<groupId>com.github.steveice10</groupId>
|
||||
<artifactId>mcprotocollib</artifactId>
|
||||
<version>20w17a-SNAPSHOT</version>
|
||||
<version>20w19a-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 = "20w17a";
|
||||
public static final int PROTOCOL_VERSION = 713;
|
||||
public static final String GAME_VERSION = "20w19a";
|
||||
public static final int PROTOCOL_VERSION = 715;
|
||||
|
||||
// General Key Constants
|
||||
public static final String PROFILE_KEY = "profile";
|
||||
|
|
|
@ -24,6 +24,7 @@ public class ServerRespawnPacket implements Packet {
|
|||
private long hashedSeed;
|
||||
private @NonNull GameMode gamemode;
|
||||
private @NonNull WorldType worldType;
|
||||
private boolean copyMetadata;
|
||||
|
||||
@Override
|
||||
public void read(NetInput in) throws IOException {
|
||||
|
@ -31,6 +32,7 @@ public class ServerRespawnPacket implements Packet {
|
|||
this.hashedSeed = in.readLong();
|
||||
this.gamemode = MagicValues.key(GameMode.class, in.readUnsignedByte());
|
||||
this.worldType = MagicValues.key(WorldType.class, in.readString().toLowerCase());
|
||||
this.copyMetadata = in.readBoolean();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -39,6 +41,7 @@ public class ServerRespawnPacket implements Packet {
|
|||
out.writeLong(this.hashedSeed);
|
||||
out.writeByte(MagicValues.value(Integer.class, this.gamemode));
|
||||
out.writeString(MagicValues.value(String.class, this.worldType));
|
||||
out.writeBoolean(this.copyMetadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue