mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Prepare for release protocol
This commit is contained in:
parent
60547d54fd
commit
70b0fa1bd4
2 changed files with 5 additions and 5 deletions
|
@ -199,9 +199,9 @@ public class MinecraftCodec {
|
|||
}
|
||||
|
||||
public static final PacketCodec CODEC = PacketCodec.builder()
|
||||
.protocolVersion((1 << 30) | 120)
|
||||
.protocolVersion(762)
|
||||
.helper(() -> new MinecraftCodecHelper(LEVEL_EVENTS, SOUND_NAMES))
|
||||
.minecraftVersion("1.19.4 Pre-release 1")
|
||||
.minecraftVersion("1.19.4")
|
||||
.state(ProtocolState.HANDSHAKE, PacketStateCodec.builder()
|
||||
.registerServerboundPacket(0x00, ClientIntentionPacket.class, ClientIntentionPacket::new)
|
||||
)
|
||||
|
|
|
@ -2,7 +2,6 @@ package com.github.steveice10.mc.protocol.packet.ingame.clientbound.scoreboard;
|
|||
|
||||
import com.github.steveice10.mc.protocol.codec.MinecraftCodecHelper;
|
||||
import com.github.steveice10.mc.protocol.codec.MinecraftPacket;
|
||||
import com.github.steveice10.mc.protocol.data.DefaultComponentSerializer;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.CollisionRule;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.NameTagVisibility;
|
||||
import com.github.steveice10.mc.protocol.data.game.scoreboard.TeamAction;
|
||||
|
@ -11,6 +10,7 @@ import io.netty.buffer.ByteBuf;
|
|||
import lombok.*;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
@ -26,8 +26,8 @@ public class ClientboundSetPlayerTeamPacket implements MinecraftPacket {
|
|||
private final Component suffix;
|
||||
private final boolean friendlyFire;
|
||||
private final boolean seeFriendlyInvisibles;
|
||||
private final NameTagVisibility nameTagVisibility;
|
||||
private final CollisionRule collisionRule;
|
||||
private final @Nullable NameTagVisibility nameTagVisibility;
|
||||
private final @Nullable CollisionRule collisionRule;
|
||||
private final TeamColor color;
|
||||
|
||||
private final String[] players;
|
||||
|
|
Loading…
Reference in a new issue